fix for crash on loading some nodes.
authorCampbell Barton <ideasman42@gmail.com>
Wed, 28 Apr 2010 18:13:03 +0000 (18:13 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 28 Apr 2010 18:13:03 +0000 (18:13 +0000)
source/blender/blenkernel/intern/node.c

index 9ff7f1f29822ef3f2e05ad9ccc5697863e452efc..3d49548cba76566c28872a9966cad9edc39867a9 100644 (file)
@@ -114,7 +114,8 @@ void ntreeInitTypes(bNodeTree *ntree)
                                }
                        }
                        node->typeinfo= stype;
-                       node->typeinfo->initfunc(node);
+                       if(node->typeinfo)
+                               node->typeinfo->initfunc(node);
                } else {
                        node->typeinfo= node_get_type(ntree, node->type, (bNodeTree *)node->id, NULL);
                }