diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-03-01 00:06:09 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-03-01 00:06:09 +0300 |
commit | 55268331f62e6e847e9fa5b001d1d8145a407b35 (patch) | |
tree | b8cf6cebb466818dad902564f8eff72295b6d248 | |
parent | 12f77ddb9ed103dfe2ae3ff7f94375d5abb8ab95 (diff) |
missed these last commit.
-rw-r--r-- | source/blender/python/intern/bpy_rna.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/python/intern/bpy_rna.c b/source/blender/python/intern/bpy_rna.c index 92feb75fd44..2b52c6e3177 100644 --- a/source/blender/python/intern/bpy_rna.c +++ b/source/blender/python/intern/bpy_rna.c @@ -254,10 +254,10 @@ static int mathutils_rna_matrix_get(BaseMathObject *bmo, int UNUSED(subtype)) 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 @@ static int mathutils_rna_matrix_set(BaseMathObject *bmo, int UNUSED(subtype)) 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 @@ static int mathutils_rna_matrix_set(BaseMathObject *bmo, int UNUSED(subtype)) 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 = { |