[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [35270] trunk/blender/source/blender/ python/intern/bpy_rna.c: missed these last commit.

Campbell Barton ideasman42 at gmail.com
Mon Feb 28 22:06:09 CET 2011


Revision: 35270
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=35270
Author:   campbellbarton
Date:     2011-02-28 21:06:09 +0000 (Mon, 28 Feb 2011)
Log Message:
-----------
missed these last commit.

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	2011-02-28 20:22:28 UTC (rev 35269)
+++ trunk/blender/source/blender/python/intern/bpy_rna.c	2011-02-28 21:06:09 UTC (rev 35270)
@@ -254,10 +254,10 @@
 	BPy_PropertyRNA *self= (BPy_PropertyRNA *)bmo->cb_user;
 
 	if(self->prop==NULL)
-		return 0;
+		return -1;
 
 	RNA_property_float_get_array(&self->ptr, self->prop, bmo->data);
-	return 1;
+	return 0;
 }
 
 static int mathutils_rna_matrix_set(BaseMathObject *bmo, int UNUSED(subtype))
@@ -265,17 +265,17 @@
 	BPy_PropertyRNA *self= (BPy_PropertyRNA *)bmo->cb_user;
 
 	if(self->prop==NULL)
-		return 0;
+		return -1;
 
 #ifdef USE_PEDANTIC_WRITE
 	if(rna_disallow_writes && rna_id_write_error(&self->ptr, NULL)) {
-		return 0;
+		return -1;
 	}
 #endif // USE_PEDANTIC_WRITE
 
 	if (!RNA_property_editable_flag(&self->ptr, self->prop)) {
 		PyErr_Format(PyExc_AttributeError, "bpy_prop \"%.200s.%.200s\" is read-only", RNA_struct_identifier(self->ptr.type), RNA_property_identifier(self->prop));
-		return 0;
+		return -1;
 	}
 
 	/* can ignore clamping here */
@@ -284,7 +284,7 @@
 	if(RNA_property_update_check(self->prop)) {
 		RNA_property_update(BPy_GetContext(), &self->ptr, self->prop);
 	}
-	return 1;
+	return 0;
 }
 
 static Mathutils_Callback mathutils_rna_matrix_cb = {




More information about the Bf-blender-cvs mailing list