diff options
author | Nathan Letwory <nathan@letworyinteractive.com> | 2009-01-12 02:48:53 +0300 |
---|---|---|
committer | Nathan Letwory <nathan@letworyinteractive.com> | 2009-01-12 02:48:53 +0300 |
commit | ab33f8f0c066e343eeb7d48f6b9f627e13e3cfe1 (patch) | |
tree | f05f6beb744db47474f553891def6d85c51050b0 /source/blender | |
parent | a1912243b698926523d12b61f8241175f1075342 (diff) |
2.5
* when reading an old .blend 2.5 crashed on creating input node menu. type->name is for some reason NULL, so add simple check to prevent from happening again.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/space_node/node_header.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_node/node_header.c b/source/blender/editors/space_node/node_header.c index f7b718d0af3..d1ff055a06a 100644 --- a/source/blender/editors/space_node/node_header.c +++ b/source/blender/editors/space_node/node_header.c @@ -200,7 +200,7 @@ static void node_make_addmenu(bContext *C, int nodeclass, uiBlock *block) bNodeType *type; int script=0; for(a=0, type= ntree->alltypes.first; type; type=type->next) { - if( type->nclass == nodeclass ) { + if( type->nclass == nodeclass && type->name) { if(type->type == NODE_DYNAMIC) { uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, type->name, 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1.0f, (float)(NODE_DYNAMIC_MENU+script), ""); |