missed these last commit.
This commit is contained in:
@@ -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 = {
|
||||
|
Reference in New Issue
Block a user