* Compile fix. prop was declared in the middle of scope.
authorThomas Dinges <blender@dingto.org>
Sat, 14 Nov 2009 08:50:02 +0000 (08:50 +0000)
committerThomas Dinges <blender@dingto.org>
Sat, 14 Nov 2009 08:50:02 +0000 (08:50 +0000)
source/blender/makesrna/intern/rna_object.c

index 28c95bdd0e4d065fa0a55d14fe016333e9130416..b1a647c5add2891f82146b8922e99d16fd7bb4e6 100644 (file)
@@ -1182,7 +1182,7 @@ static void rna_def_object_game_settings(BlenderRNA *brna)
 static void rna_def_object_constraints(BlenderRNA *brna, PropertyRNA *cprop)
 {
        StructRNA *srna;
-//     PropertyRNA *prop;
+       PropertyRNA *prop;
 
        FunctionRNA *func;
        PropertyRNA *parm;
@@ -1195,7 +1195,7 @@ static void rna_def_object_constraints(BlenderRNA *brna, PropertyRNA *cprop)
 
 
        /* Collection active property */
-       PropertyRNA *prop= RNA_def_property(srna, "active", PROP_POINTER, PROP_NONE);
+       prop= RNA_def_property(srna, "active", PROP_POINTER, PROP_NONE);
        RNA_def_property_struct_type(prop, "Constraint");
        RNA_def_property_pointer_funcs(prop, "rna_Object_active_constraint_get", "rna_Object_active_constraint_set", NULL);
        RNA_def_property_flag(prop, PROP_EDITABLE);