Mesh: Replace auto smooth with node group #108014
|
@ -525,7 +525,7 @@ const float (*BKE_mesh_poly_normals_ensure(const Mesh *mesh))[3]
|
|||
const float (*BKE_mesh_corner_normals_ensure(const Mesh *mesh))[3]
|
||||
{
|
||||
if (!BKE_mesh_corner_normals_are_dirty(mesh)) {
|
||||
BLI_assert(mesh->runtime->corner_normals != nullptr || mesh->totcorner == 0);
|
||||
BLI_assert(mesh->runtime->corner_normals != nullptr || mesh->totloop == 0);
|
||||
return mesh->runtime->corner_normals;
|
||||
}
|
||||
|
||||
|
|
|
@ -2434,6 +2434,7 @@ static void rna_def_mloop(BlenderRNA *brna)
|
|||
RNA_def_property_ui_text(prop, "Index", "Index of this loop");
|
||||
|
||||
prop = RNA_def_property(srna, "normal", PROP_FLOAT, PROP_DIRECTION);
|
||||
RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
RNA_def_property_array(prop, 3);
|
||||
RNA_def_property_range(prop, -1.0f, 1.0f);
|
||||
RNA_def_property_float_funcs(prop, "rna_MeshLoop_normal_get", NULL, NULL);
|
||||
|
|
Loading…
Reference in New Issue