Commit: 5ca59f7134690027632ea60d2259585cd2b1c97d
Author: Bastien Montagne
Date:   Mon Mar 30 15:04:42 2015 +0200
Branches: blender-v2.74-release
https://developer.blender.org/rB5ca59f7134690027632ea60d2259585cd2b1c97d

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

Missing update tagging...

Safe for 2.74.

===================================================================

M       source/blender/makesrna/intern/rna_mesh_api.c

===================================================================

diff --git a/source/blender/makesrna/intern/rna_mesh_api.c 
b/source/blender/makesrna/intern/rna_mesh_api.c
index 3f48769..0e63062 100644
--- a/source/blender/makesrna/intern/rna_mesh_api.c
+++ b/source/blender/makesrna/intern/rna_mesh_api.c
@@ -206,6 +206,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(
@@ -222,6 +224,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)

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to