2.5
authorTon Roosendaal <ton@blender.org>
Sun, 31 May 2009 12:47:36 +0000 (12:47 +0000)
committerTon Roosendaal <ton@blender.org>
Sun, 31 May 2009 12:47:36 +0000 (12:47 +0000)
RNA didn't compile for msvc, variable declaration on wrong place.

source/blender/makesrna/intern/rna_constraint.c

index 9880e25e9fdb779c7a503eeb8ab7b16d2f75ee74..02429ffa4bff15f3775cb17138acfd4c1f2218f7 100644 (file)
@@ -1425,17 +1425,17 @@ static void rna_def_constraint_shrinkwrap(BlenderRNA *brna)
 {
        StructRNA *srna;
        PropertyRNA *prop;
-
-       srna= RNA_def_struct(brna, "ShrinkwrapConstraint", "Constraint"); 
-       RNA_def_struct_ui_text(srna, "Shrinkwrap Constraint", "Creates constraint-based shrinkwrap relationship."); 
-       RNA_def_struct_sdna_from(srna, "bShrinkwrapConstraint", "data");
        
        static EnumPropertyItem type_items[] = {
                {MOD_SHRINKWRAP_NEAREST_SURFACE, "NEAREST_SURFACE", "Nearest Surface Point", ""},
                {MOD_SHRINKWRAP_PROJECT, "PROJECT", "Project", ""},
                {MOD_SHRINKWRAP_NEAREST_VERTEX, "NEAREST_VERTEX", "Nearest Vertex", ""},
                {0, NULL, NULL, NULL}};
-               
+       
+       srna= RNA_def_struct(brna, "ShrinkwrapConstraint", "Constraint"); 
+       RNA_def_struct_ui_text(srna, "Shrinkwrap Constraint", "Creates constraint-based shrinkwrap relationship."); 
+       RNA_def_struct_sdna_from(srna, "bShrinkwrapConstraint", "data");
+       
        prop= RNA_def_property(srna, "target", PROP_POINTER, PROP_NONE);
        RNA_def_property_pointer_sdna(prop, NULL, "target");
        RNA_def_property_ui_text(prop, "Target", "Target Object");