Merging r40572 through r40597 from trunk into soc-2011-tomato
[blender-staging.git] / source / blender / editors / transform / transform.c
index fb90ad0afd7f1a4347a7ff042d12ffd62031c95d..16463a2e4145bba3eb46e911bcd4eaaf7c5976dc 100644 (file)
@@ -1391,6 +1391,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)) {