[#28681] Switching transform type doesn't register correct operator for 'repeat'.

Reported by Nicholas Rishel

Part of a potential fix, see discussion in tracker.
This commit is contained in:
Martin Poirier
2011-09-27 01:28:15 +00:00
parent 58587a3881
commit 2170301204

View File

@@ -1358,6 +1358,11 @@ void saveTransform(bContext *C, TransInfo *t, wmOperator *op)
int proportional = 0; int proportional = 0;
PropertyRNA *prop; 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"))) { if ((prop= RNA_struct_find_property(op->ptr, "value"))) {
float *values= (t->flag & T_AUTOVALUES) ? t->auto_values : t->values; float *values= (t->flag & T_AUTOVALUES) ? t->auto_values : t->values;
if (RNA_property_array_check(prop)) { if (RNA_property_array_check(prop)) {