[Bf-blender-cvs] [7a8722a] depsgraph_refactor: Depsgraph: Fix issue with missing materials update
Sergey Sharybin
noreply at git.blender.org
Mon Feb 23 14:22:58 CET 2015
Commit: 7a8722a94470cb7be96d8409c3a5487147780613
Author: Sergey Sharybin
Date: Mon Feb 23 18:22:11 2015 +0500
Branches: depsgraph_refactor
https://developer.blender.org/rB7a8722a94470cb7be96d8409c3a5487147780613
Depsgraph: Fix issue with missing materials update
Now when materials are the parts of dependency graph we need to ensure
relations are all correct when affecting material slots.
===================================================================
M source/blender/makesrna/intern/rna_object.c
===================================================================
diff --git a/source/blender/makesrna/intern/rna_object.c b/source/blender/makesrna/intern/rna_object.c
index 51c011e..3b19a7a 100644
--- a/source/blender/makesrna/intern/rna_object.c
+++ b/source/blender/makesrna/intern/rna_object.c
@@ -949,6 +949,7 @@ static void rna_MaterialSlot_update(Main *bmain, Scene *scene, PointerRNA *ptr)
WM_main_add_notifier(NC_OBJECT | ND_OB_SHADING, ptr->id.data);
WM_main_add_notifier(NC_MATERIAL | ND_SHADING_LINKS, NULL);
+ DAG_relations_tag_update(bmain);
}
static char *rna_MaterialSlot_path(PointerRNA *ptr)
More information about the Bf-blender-cvs
mailing list