Mesh: Replace auto smooth with node group #108014
|
@ -1494,7 +1494,8 @@ void normals_calc_loop(const Span<float3> vert_positions,
|
|||
|
||||
CornerNormalSpaceArray _lnors_spacearr;
|
||||
|
||||
#ifdef DEBUG_TIME SCOPED_TIMER_AVERAGED(__func__);
|
||||
#ifdef DEBUG_TIME
|
||||
SCOPED_TIMER_AVERAGED(__func__);
|
||||
#endif
|
||||
|
||||
if (!r_lnors_spacearr && custom_normals_data) {
|
||||
|
|
|
@ -343,7 +343,7 @@ static void compute_normal_outputs(const Mesh &mesh,
|
|||
}
|
||||
case ATTR_DOMAIN_FACE: {
|
||||
const Span<float3> poly_normals = mesh.poly_normals();
|
||||
bke::mesh_surface_sample::sample_face_attribute(mesh.looptris(),
|
||||
bke::mesh_surface_sample::sample_face_attribute(mesh.looptri_polys(),
|
||||
looptri_indices,
|
||||
VArray<float3>::ForSpan(poly_normals),
|
||||
IndexMask(looptri_indices.index_range()),
|
||||
|
|
Loading…
Reference in New Issue