diff options
Diffstat (limited to 'source/blender')
-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)); } |