Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-03-01 00:06:09 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-03-01 00:06:09 +0300
commit55268331f62e6e847e9fa5b001d1d8145a407b35 (patch)
treeb8cf6cebb466818dad902564f8eff72295b6d248 /source/blender
parent12f77ddb9ed103dfe2ae3ff7f94375d5abb8ab95 (diff)
missed these last commit.
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/python/intern/bpy_rna.c12
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 = {