[Bf-blender-cvs] [f12c17a] master: Fix T43501: Crash on custom node tree creation

julianeisel noreply at git.blender.org
Mon Feb 2 03:04:44 CET 2015


Commit: f12c17abfe14cd7f7663a2206dd33cf9b168b0d6
Author: julianeisel
Date:   Mon Feb 2 03:02:39 2015 +0100
Branches: master
https://developer.blender.org/rBf12c17abfe14cd7f7663a2206dd33cf9b168b0d6

Fix T43501: Crash on custom node tree creation

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

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 0de231b..87a64e9 100644
--- a/source/blender/editors/space_node/node_draw.c
+++ b/source/blender/editors/space_node/node_draw.c
@@ -1302,12 +1302,10 @@ void drawnodespace(const bContext *C, ARegion *ar)
 		bNodeLinkDrag *nldrag;
 		LinkData *linkdata;
 		
-		BLI_assert(snode->id != NULL);
-		
 		path = snode->treepath.last;
 		
 		/* update tree path name (drawn in the bottom left) */
-		if (UNLIKELY(!STREQ(path->node_name, snode->id->name + 2))) {
+		if (snode->id && UNLIKELY(!STREQ(path->node_name, snode->id->name + 2))) {
 			BLI_strncpy(path->node_name, snode->id->name + 2, sizeof(path->node_name));
 		}




More information about the Bf-blender-cvs mailing list