[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [54866] trunk/blender/source/blender/ python/intern/bpy_rna.c: correction to previous commit with empty collections.

Campbell Barton ideasman42 at gmail.com
Tue Feb 26 01:35:48 CET 2013


Revision: 54866
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=54866
Author:   campbellbarton
Date:     2013-02-26 00:35:48 +0000 (Tue, 26 Feb 2013)
Log Message:
-----------
correction to previous commit with empty collections.

Modified Paths:
--------------
    trunk/blender/source/blender/python/intern/bpy_rna.c

Modified: trunk/blender/source/blender/python/intern/bpy_rna.c
===================================================================
--- trunk/blender/source/blender/python/intern/bpy_rna.c	2013-02-26 00:31:36 UTC (rev 54865)
+++ trunk/blender/source/blender/python/intern/bpy_rna.c	2013-02-26 00:35:48 UTC (rev 54866)
@@ -4262,10 +4262,10 @@
                               RawPropertyType *raw_type, int *attr_tot, bool *attr_signed)
 {
 	PropertyRNA *prop;
+	bool attr_ok = true;
 	*raw_type = PROP_RAW_UNSET;
 	*attr_tot = 0;
 	*attr_signed = false;
-	bool attr_found;
 
 	/* note: this is fail with zero length lists, so don't let this get caled in that case */
 	RNA_PROP_BEGIN (&self->ptr, itemptr, self->prop)
@@ -4275,16 +4275,15 @@
 			*raw_type = RNA_property_raw_type(prop);
 			*attr_tot = RNA_property_array_length(&itemptr, prop);
 			*attr_signed = (RNA_property_subtype(prop) != PROP_UNSIGNED);
-			attr_found = true;
 		}
 		else {
-			attr_found = false;
+			attr_ok = false;
 		}
 		break;
 	}
 	RNA_PROP_END;
 
-	return attr_found;
+	return attr_ok;
 }
 
 /* pyrna_prop_collection_foreach_get/set both use this */




More information about the Bf-blender-cvs mailing list