Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform_generics.c
| Show First 20 Lines • Show All 1,686 Lines • ▼ Show 20 Lines | void initTransInfo(bContext *C, TransInfo *t, wmOperator *op, const wmEvent *event) | ||||
| if (op && ((prop = RNA_struct_find_property(op->ptr, "release_confirm")) && | if (op && ((prop = RNA_struct_find_property(op->ptr, "release_confirm")) && | ||||
| RNA_property_is_set(op->ptr, prop))) { | RNA_property_is_set(op->ptr, prop))) { | ||||
| if (RNA_property_boolean_get(op->ptr, prop)) { | if (RNA_property_boolean_get(op->ptr, prop)) { | ||||
| t->flag |= T_RELEASE_CONFIRM; | t->flag |= T_RELEASE_CONFIRM; | ||||
| } | } | ||||
| } | } | ||||
| else { | else { | ||||
| if (U.flag & USER_RELEASECONFIRM) { | if (ISMOUSE(t->launch_event) && (U.flag & USER_RELEASECONFIRM)) { | ||||
| /* Global "release confirm" on mouse bindings */ | |||||
| t->flag |= T_RELEASE_CONFIRM; | t->flag |= T_RELEASE_CONFIRM; | ||||
| } | } | ||||
| } | } | ||||
| if (op && ((prop = RNA_struct_find_property(op->ptr, "mirror")) && | if (op && ((prop = RNA_struct_find_property(op->ptr, "mirror")) && | ||||
| RNA_property_is_set(op->ptr, prop))) { | RNA_property_is_set(op->ptr, prop))) { | ||||
| if (!RNA_property_boolean_get(op->ptr, prop)) { | if (!RNA_property_boolean_get(op->ptr, prop)) { | ||||
| t->flag |= T_NO_MIRROR; | t->flag |= T_NO_MIRROR; | ||||
| ▲ Show 20 Lines • Show All 850 Lines • Show Last 20 Lines | |||||