Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform.c
| Show First 20 Lines • Show All 519 Lines • ▼ Show 20 Lines | if (IS_AUTOKEY_ON(t->scene)) { | ||||
| WM_main_add_notifier(NC_ANIMATION | ND_KEYFRAME | NA_EDITED, NULL); | WM_main_add_notifier(NC_ANIMATION | ND_KEYFRAME | NA_EDITED, NULL); | ||||
| } | } | ||||
| /* redraw UV editor */ | /* redraw UV editor */ | ||||
| const char uvcalc_correct_flag = ELEM(t->mode, TFM_VERT_SLIDE, TFM_EDGE_SLIDE) ? | const char uvcalc_correct_flag = ELEM(t->mode, TFM_VERT_SLIDE, TFM_EDGE_SLIDE) ? | ||||
| UVCALC_TRANSFORM_CORRECT_SLIDE : | UVCALC_TRANSFORM_CORRECT_SLIDE : | ||||
| UVCALC_TRANSFORM_CORRECT; | UVCALC_TRANSFORM_CORRECT; | ||||
| if ((t->data_type == TC_MESH_VERTS) && (t->settings->uvcalc_flag & uvcalc_correct_flag)) { | if ((t->data_type == &TransConvertType_Mesh) && | ||||
| (t->settings->uvcalc_flag & uvcalc_correct_flag)) { | |||||
| WM_event_add_notifier(C, NC_GEOM | ND_DATA, NULL); | WM_event_add_notifier(C, NC_GEOM | ND_DATA, NULL); | ||||
| } | } | ||||
| /* XXX(ton): temp, first hack to get auto-render in compositor work. */ | /* XXX(ton): temp, first hack to get auto-render in compositor work. */ | ||||
| WM_event_add_notifier(C, NC_SCENE | ND_TRANSFORM_DONE, CTX_data_scene(C)); | WM_event_add_notifier(C, NC_SCENE | ND_TRANSFORM_DONE, CTX_data_scene(C)); | ||||
| } | } | ||||
| #if 0 /* TRANSFORM_FIX_ME */ | #if 0 /* TRANSFORM_FIX_ME */ | ||||
| ▲ Show 20 Lines • Show All 305 Lines • ▼ Show 20 Lines | static bool transform_event_modal_constraint(TransInfo *t, short modal_type) | ||||
| } | } | ||||
| if (t->flag & T_2D_EDIT) { | if (t->flag & T_2D_EDIT) { | ||||
| BLI_assert(modal_type < TFM_MODAL_PLANE_X); | BLI_assert(modal_type < TFM_MODAL_PLANE_X); | ||||
| if (constraint_new == CON_AXIS2) { | if (constraint_new == CON_AXIS2) { | ||||
| return false; | return false; | ||||
| } | } | ||||
| if (t->data_type == TC_SEQ_IMAGE_DATA) { | if (t->data_type == &TransConvertType_SequencerImage) { | ||||
| /* Setup the 2d msg string so it writes out the transform space. */ | /* Setup the 2d msg string so it writes out the transform space. */ | ||||
| msg_2d = msg_3d; | msg_2d = msg_3d; | ||||
| short orient_index = 1; | short orient_index = 1; | ||||
| if (t->orient_curr == O_DEFAULT || ELEM(constraint_curr, -1, constraint_new)) { | if (t->orient_curr == O_DEFAULT || ELEM(constraint_curr, -1, constraint_new)) { | ||||
| /* Successive presses on existing axis, cycle orientation modes. */ | /* Successive presses on existing axis, cycle orientation modes. */ | ||||
| orient_index = (short)((t->orient_curr + 1) % (int)ARRAY_SIZE(t->orient)); | orient_index = (short)((t->orient_curr + 1) % (int)ARRAY_SIZE(t->orient)); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 1,210 Lines • Show Last 20 Lines | |||||