diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-10-30 16:58:43 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-10-30 16:58:43 +0300 |
commit | 84eb897caa029f1dc8bd9e61298fa7bfb8ccc622 (patch) | |
tree | 5f69c834602a9e1e52a4de9a30503b91490c4934 | |
parent | 01f6dfaac93cbb86a9d94c173745ef950888857f (diff) |
updating mathutils wrapped attributes now runs rna update functions too
-rw-r--r-- | source/blender/python/intern/bpy_rna.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/python/intern/bpy_rna.c b/source/blender/python/intern/bpy_rna.c index 0d338cd4631..cbc75d35bce 100644 --- a/source/blender/python/intern/bpy_rna.c +++ b/source/blender/python/intern/bpy_rna.c @@ -71,6 +71,7 @@ static int mathutils_rna_vector_set(BPy_PropertyRNA *self, int subtype, float *v return 0; RNA_property_float_set_array(&self->ptr, self->prop, vec_to); + RNA_property_update(BPy_GetContext(), &self->ptr, self->prop); return 1; } @@ -89,6 +90,7 @@ static int mathutils_rna_vector_set_index(BPy_PropertyRNA *self, int subtype, fl return 0; RNA_property_float_set_index(&self->ptr, self->prop, index, vec_to[index]); + RNA_property_update(BPy_GetContext(), &self->ptr, self->prop); return 1; } @@ -119,6 +121,7 @@ static int mathutils_rna_matrix_set(BPy_PropertyRNA *self, int subtype, float *m return 0; RNA_property_float_set_array(&self->ptr, self->prop, mat_to); + RNA_property_update(BPy_GetContext(), &self->ptr, self->prop); return 1; } |