diff options
author | julianeisel <julian_eisel@web.de> | 2015-02-02 05:02:39 +0300 |
---|---|---|
committer | julianeisel <julian_eisel@web.de> | 2015-02-02 05:04:31 +0300 |
commit | f12c17abfe14cd7f7663a2206dd33cf9b168b0d6 (patch) | |
tree | 7e274d8c031fcabd089ca26e6b7a417074ef823b /source/blender/editors/space_node | |
parent | 0305b208eb8d582fa04985e6350214a0b669159d (diff) |
Fix T43501: Crash on custom node tree creation
Diffstat (limited to 'source/blender/editors/space_node')
-rw-r--r-- | source/blender/editors/space_node/node_draw.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/editors/space_node/node_draw.c b/source/blender/editors/space_node/node_draw.c index 0de231ba7cc..87a64e95e63 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)); } |