Fix for crash when assigning NULL pointer to node group node_tree property. This...
authorLukas Toenne <lukas.toenne@googlemail.com>
Mon, 10 Jun 2013 17:48:41 +0000 (17:48 +0000)
committerLukas Toenne <lukas.toenne@googlemail.com>
Mon, 10 Jun 2013 17:48:41 +0000 (17:48 +0000)
source/blender/nodes/intern/node_common.c

index 94c91831169da383107d881c6650892c90057ad2..36b27094cc4c43db659539cd08ab3f20574926d7 100644 (file)
@@ -105,6 +105,12 @@ int nodeGroupPoll(bNodeTree *nodetree, bNodeTree *grouptree)
        bNode *node;
        int valid = 1;
        
+       /* unspecified node group, generally allowed
+        * (if anything, should be avoided on operator level)
+        */
+       if (grouptree == NULL)
+               return 1;
+       
        if (nodetree == grouptree)
                return 0;