[#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:
@@ -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)) {
|
||||
|
Reference in New Issue
Block a user