[Bf-blender-cvs] [bacdfc7] master: Fix T41191: Custom Loop Normals Viewport shading not updating when set from py script
Bastien Montagne
noreply at git.blender.org
Mon Mar 30 15:05:32 CEST 2015
Commit: bacdfc70e2109711eeecef122cf408e6803990ca
Author: Bastien Montagne
Date: Mon Mar 30 15:04:42 2015 +0200
Branches: master
https://developer.blender.org/rBbacdfc70e2109711eeecef122cf408e6803990ca
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 48a5f09..632b07c 100644
--- a/source/blender/makesrna/intern/rna_mesh_api.c
+++ b/source/blender/makesrna/intern/rna_mesh_api.c
@@ -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)
More information about the Bf-blender-cvs
mailing list