Fix T41191: Custom Loop Normals Viewport shading not updating when set from py script

Missing update tagging...

Safe for 2.74.
This commit is contained in:
Bastien Montagne 2015-03-30 15:04:42 +02:00
parent c6ce8200dd
commit bacdfc70e2
Notes: blender-bot 2023-02-14 10:17:46 +01:00
Referenced by issue #44191, Custom Loop Normals Viewport shading not updating
Referenced by issue #41191, Face snapping doesn't work properly
1 changed files with 4 additions and 0 deletions

View File

@ -170,6 +170,8 @@ static void rna_Mesh_normals_split_custom_set(Mesh *mesh, ReportList *reports, i
}
rna_Mesh_normals_split_custom_do(mesh, loopnors, false);
DAG_id_tag_update(&mesh->id, 0);
}
static void rna_Mesh_normals_split_custom_set_from_vertices(
@ -186,6 +188,8 @@ static void rna_Mesh_normals_split_custom_set_from_vertices(
}
rna_Mesh_normals_split_custom_do(mesh, vertnors, true);
DAG_id_tag_update(&mesh->id, 0);
}
static void rna_Mesh_transform(Mesh *mesh, float *mat, int shape_keys)