[Bf-blender-cvs] [6609be05201] blender2.8: Depsgraph: Simplify logic around special case for node tree update
Sergey Sharybin
noreply at git.blender.org
Fri Dec 15 17:24:20 CET 2017
Commit: 6609be05201f8528602d5f2ef53f59a1ae292414
Author: Sergey Sharybin
Date: Fri Dec 15 15:10:11 2017 +0100
Branches: blender2.8
https://developer.blender.org/rB6609be05201f8528602d5f2ef53f59a1ae292414
Depsgraph: Simplify logic around special case for node tree update
===================================================================
M source/blender/depsgraph/intern/depsgraph_tag.cc
===================================================================
diff --git a/source/blender/depsgraph/intern/depsgraph_tag.cc b/source/blender/depsgraph/intern/depsgraph_tag.cc
index 8bbaa8f2021..f2071356150 100644
--- a/source/blender/depsgraph/intern/depsgraph_tag.cc
+++ b/source/blender/depsgraph/intern/depsgraph_tag.cc
@@ -369,14 +369,7 @@ void id_tag_update_editors_update(Main *bmain, Depsgraph *graph, ID *id)
void id_tag_update_ntree_special(Main *bmain, Depsgraph *graph, ID *id, int flag)
{
- bNodeTree *ntree = NULL;
- switch (GS(id->name)) {
- case ID_MA:
- ntree = ((Material *)id)->nodetree;
- break;
- default:
- break;
- }
+ bNodeTree *ntree = ntreeFromID(id);
if (ntree == NULL) {
return;
}
More information about the Bf-blender-cvs
mailing list