Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform.c
| Show First 20 Lines • Show All 1,631 Lines • ▼ Show 20 Lines | if ((prop = RNA_struct_find_property(op->ptr, "value"))) { | ||||
| if (RNA_property_array_check(prop)) { | if (RNA_property_array_check(prop)) { | ||||
| RNA_property_float_set_array(op->ptr, prop, t->values_final); | RNA_property_float_set_array(op->ptr, prop, t->values_final); | ||||
| } | } | ||||
| else { | else { | ||||
| RNA_property_float_set(op->ptr, prop, t->values_final[0]); | RNA_property_float_set(op->ptr, prop, t->values_final[0]); | ||||
| } | } | ||||
| } | } | ||||
| if ((prop = RNA_struct_find_property(op->ptr, "mouse_override"))) { | |||||
| /* Important for redo operations. */ | |||||
| RNA_property_int_set_array(op->ptr, prop, t->mouse.imval); | |||||
| } | |||||
| if (t->flag & T_PROP_EDIT_ALL) { | if (t->flag & T_PROP_EDIT_ALL) { | ||||
| if (t->flag & T_PROP_EDIT) { | if (t->flag & T_PROP_EDIT) { | ||||
| proportional |= PROP_EDIT_USE; | proportional |= PROP_EDIT_USE; | ||||
| } | } | ||||
| if (t->flag & T_PROP_CONNECTED) { | if (t->flag & T_PROP_CONNECTED) { | ||||
| proportional |= PROP_EDIT_CONNECTED; | proportional |= PROP_EDIT_CONNECTED; | ||||
| } | } | ||||
| if (t->flag & T_PROP_PROJECTED) { | if (t->flag & T_PROP_PROJECTED) { | ||||
| ▲ Show 20 Lines • Show All 795 Lines • Show Last 20 Lines | |||||