[Bf-blender-cvs] [d094925] object_nodes: Extended notifiers from node value editing to include instancing trees.

Lukas Tönne noreply at git.blender.org
Wed Dec 23 13:02:19 CET 2015


Commit: d0949254da61607d42b4c94d282566c1be69c8cb
Author: Lukas Tönne
Date:   Wed Dec 23 13:00:29 2015 +0100
Branches: object_nodes
https://developer.blender.org/rBd0949254da61607d42b4c94d282566c1be69c8cb

Extended notifiers from node value editing to include instancing trees.

The use of notifiers from node trees is very unsatisfactory atm.
Notifiers should be integrated into the depsgraph, so that changes
to data automatically trigger appropriate UI redrawing.

===================================================================

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 868b589..5720302 100644
--- a/source/blender/editors/space_node/node_draw.c
+++ b/source/blender/editors/space_node/node_draw.c
@@ -153,7 +153,8 @@ void ED_node_tag_update_id(ID *id)
 	 * This should ideally happen through the depsgraph too,
 	 * but for now this is the only real option.
 	 */
-	else if (STREQ(ntree->idname, "GeometryNodeTree")) {
+	else if (STREQ(ntree->idname, "GeometryNodeTree") ||
+	         STREQ(ntree->idname, "InstancingNodeTree")) {
 		WM_main_add_notifier(NC_MATERIAL | ND_NODES, NULL);
 	}
 	else if (id == &ntree->id) {




More information about the Bf-blender-cvs mailing list