Revision: 55800
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=55800
Author:   nazgul
Date:     2013-04-05 06:50:59 +0000 (Fri, 05 Apr 2013)
Log Message:
-----------
Apparently, you shall not define variables in the middle of the block

Modified Paths:
--------------
    trunk/blender/source/blender/makesrna/intern/rna_access.c

Modified: trunk/blender/source/blender/makesrna/intern/rna_access.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_access.c   2013-04-05 
03:44:07 UTC (rev 55799)
+++ trunk/blender/source/blender/makesrna/intern/rna_access.c   2013-04-05 
06:50:59 UTC (rev 55800)
@@ -6181,14 +6181,16 @@
 
 bool RNA_property_equals(PointerRNA *a, PointerRNA *b, PropertyRNA *prop, bool 
is_strict)
 {
+       int len, fromlen;
+
        /* if not strict, uninitialized properties are assumed to match */
        if (!is_strict)
                if (!(RNA_property_is_set(a, prop) && RNA_property_is_set(b, 
prop)))
                        return true;
 
        /* get the length of the array to work with */
-       int len = RNA_property_array_length(a, prop);
-       int fromlen = RNA_property_array_length(b, prop);
+       len = RNA_property_array_length(a, prop);
+       fromlen = RNA_property_array_length(b, prop);
 
        if (len != fromlen)
                return false;

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to