[Bf-blender-cvs] [d44b1f9] depsgraph_refactor: Depsgraph: Create ID nodes for material, so this way tag update doesn't go berserk
Sergey Sharybin
noreply at git.blender.org
Thu Jan 15 14:20:28 CET 2015
Commit: d44b1f95073ea4063e2cdeb74b1bd3e635ab82ca
Author: Sergey Sharybin
Date: Thu Jan 15 18:18:20 2015 +0500
Branches: depsgraph_refactor
https://developer.blender.org/rBd44b1f95073ea4063e2cdeb74b1bd3e635ab82ca
Depsgraph: Create ID nodes for material, so this way tag update doesn't go berserk
Without this DEG_graph_id_tag_update would consider delayed ID update is needed
after the graph is rebuilt, which is just wrong.
There are no relations fr now, need of them is still being investigated.
===================================================================
M source/blender/depsgraph/intern/depsgraph_build_nodes.cpp
===================================================================
diff --git a/source/blender/depsgraph/intern/depsgraph_build_nodes.cpp b/source/blender/depsgraph/intern/depsgraph_build_nodes.cpp
index 85a36ee..4653a02 100644
--- a/source/blender/depsgraph/intern/depsgraph_build_nodes.cpp
+++ b/source/blender/depsgraph/intern/depsgraph_build_nodes.cpp
@@ -833,8 +833,11 @@ void DepsgraphNodeBuilder::build_material(DepsNode *owner_node, Material *ma)
if (id_is_tagged(ma_id))
return;
id_tag_set(ma_id);
-
+
/* material itself */
+ add_id_node(ma_id);
+
+ /* material animation */
build_animdata(ma_id);
/* textures */
More information about the Bf-blender-cvs
mailing list