[Bf-blender-cvs] [da70902] object_nodes: Fix for missing notifier application on texture node trees.
Lukas Tönne
noreply at git.blender.org
Fri May 13 15:49:01 CEST 2016
Commit: da709027316cf7c256bacbf108ee6b3b3b1f07ec
Author: Lukas Tönne
Date: Fri May 13 15:48:24 2016 +0200
Branches: object_nodes
https://developer.blender.org/rBda709027316cf7c256bacbf108ee6b3b3b1f07ec
Fix for missing notifier application on texture node trees.
The pynodes tree does not have the static NTREE_TEXTURE type set.
===================================================================
M source/blender/editors/space_node/node_draw.c
===================================================================
diff --git a/source/blender/editors/space_node/node_draw.c b/source/blender/editors/space_node/node_draw.c
index 697a4c6..95ba89b 100644
--- a/source/blender/editors/space_node/node_draw.c
+++ b/source/blender/editors/space_node/node_draw.c
@@ -157,6 +157,10 @@ void ED_node_tag_update_id(ID *id)
STREQ(ntree->idname, "InstancingNodeTree")) {
WM_main_add_notifier(NC_MATERIAL | ND_NODES, NULL);
}
+ else if (STREQ(ntree->idname, "TextureNodeTree")) {
+ DAG_id_tag_update(id, 0);
+ WM_main_add_notifier(NC_TEXTURE | ND_NODES, id);
+ }
else if (id == &ntree->id) {
/* node groups */
DAG_id_tag_update(id, 0);
More information about the Bf-blender-cvs
mailing list