Mesh: Replace auto smooth with node group #108014

Merged
Hans Goudey merged 149 commits from HooglyBoogly/blender:refactor-mesh-corner-normals-lazy into main 2023-10-20 16:54:20 +02:00
2 changed files with 3 additions and 2 deletions
Showing only changes of commit 5f42d264b1 - Show all commits

View File

@ -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) {

View File

@ -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()),