[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [55800] trunk/blender/source/blender/ makesrna/intern/rna_access.c: Apparently, you shall not define variables in the middle of the block

Sergey Sharybin sergey.vfx at gmail.com
Fri Apr 5 08:51:00 CEST 2013


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;




More information about the Bf-blender-cvs mailing list