Fix own regression in cycles material group cased by recent changes in nodes rna
authorSergey Sharybin <sergey.vfx@gmail.com>
Wed, 1 Aug 2012 16:16:10 +0000 (16:16 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Wed, 1 Aug 2012 16:16:10 +0000 (16:16 +0000)
source/blender/makesrna/intern/rna_nodetree.c

index ef58b82a3bd1c7f293c9f263c82d73ca2ba2dc2b..f505bc0baa420fb5908d4f16871acc7dd7554d51 100644 (file)
@@ -217,12 +217,15 @@ static StructRNA *rna_Node_refine(struct PointerRNA *ptr)
                #include "rna_nodetree_types.h"
                
                case NODE_GROUP:
+                       return &RNA_NodeGroup;
                case NODE_FORLOOP:
+                       return &RNA_NodeForLoop;
                case NODE_WHILELOOP:
+                       return &RNA_NodeWhileLoop;
                case NODE_FRAME:
+                       return &RNA_NodeFrame;
                case NODE_REROUTE:
-                       return &RNA_SpecialNode;
-                       
+                       return &RNA_NodeReroute;
                default:
                        return &RNA_Node;
        }
@@ -1051,11 +1054,11 @@ static void init(void)
                
        #include "rna_nodetree_types.h"
        
-       reg_node(NODE_GROUP, Category_GroupNode, "GROUP", "NodeGroup", "Node", "Group", "");
-       reg_node(NODE_FORLOOP, Category_LoopNode, "FORLOOP", "NodeForLoop", "Node", "ForLoop", "");
-       reg_node(NODE_WHILELOOP, Category_LoopNode, "WHILELOOP", "NodeWhileLoop", "Node", "WhileLoop", "");
-       reg_node(NODE_FRAME, Category_LayoutNode, "FRAME", "NodeFrame", "Node", "Frame", "");
-       reg_node(NODE_REROUTE, Category_LayoutNode, "REROUTE", "NodeReroute", "Node", "Reroute", "");
+       reg_node(NODE_GROUP, Category_GroupNode, "GROUP", "NodeGroup", "SpecialNode", "Group", "");
+       reg_node(NODE_FORLOOP, Category_LoopNode, "FORLOOP", "NodeForLoop", "SpecialNode", "ForLoop", "");
+       reg_node(NODE_WHILELOOP, Category_LoopNode, "WHILELOOP", "NodeWhileLoop", "SpecialNode", "WhileLoop", "");
+       reg_node(NODE_FRAME, Category_LayoutNode, "FRAME", "NodeFrame", "SpecialNode", "Frame", "");
+       reg_node(NODE_REROUTE, Category_LayoutNode, "REROUTE", "NodeReroute", "SpecialNode", "Reroute", "");
 }
 
 static StructRNA *def_node(BlenderRNA *brna, int node_id)