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:
authorMartin Poirier <theeth@yahoo.com>2011-09-27 05:28:15 +0400
committerMartin Poirier <theeth@yahoo.com>2011-09-27 05:28:15 +0400
commit217030120463276043fa977656d3cd5bc13cd411 (patch)
tree5be5ea2c8c4aee4f1130711cfa3e575227bc97c4 /source/blender/editors/transform
parent58587a38818b0dba25886c97d584285fef4e9249 (diff)
[#28681] Switching transform type doesn't register correct operator for 'repeat'.
Reported by Nicholas Rishel Part of a potential fix, see discussion in tracker.
Diffstat (limited to 'source/blender/editors/transform')
-rw-r--r--source/blender/editors/transform/transform.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c
index fbe0a1864bf..c77f7620326 100644
--- a/source/blender/editors/transform/transform.c
+++ b/source/blender/editors/transform/transform.c
@@ -1358,6 +1358,11 @@ void saveTransform(bContext *C, TransInfo *t, wmOperator *op)
int proportional = 0;
PropertyRNA *prop;
+ // Save back mode in case we're in the generic operator
+ if ((prop= RNA_struct_find_property(op->ptr, "mode"))) {
+ RNA_property_enum_set(op->ptr, prop, t->mode);
+ }
+
if ((prop= RNA_struct_find_property(op->ptr, "value"))) {
float *values= (t->flag & T_AUTOVALUES) ? t->auto_values : t->values;
if (RNA_property_array_check(prop)) {