Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjulianeisel <julian_eisel@web.de>2015-02-02 05:02:39 +0300
committerjulianeisel <julian_eisel@web.de>2015-02-02 05:04:31 +0300
commitf12c17abfe14cd7f7663a2206dd33cf9b168b0d6 (patch)
tree7e274d8c031fcabd089ca26e6b7a417074ef823b /source/blender
parent0305b208eb8d582fa04985e6350214a0b669159d (diff)
Fix T43501: Crash on custom node tree creation
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/editors/space_node/node_draw.c4
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));
}