Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform_mode_translate.c
| Show First 20 Lines • Show All 371 Lines • ▼ Show 20 Lines | if (t->con.mode & CON_APPLY) { | ||||
| } | } | ||||
| else if (t->con.mode & CON_AXIS2) { | else if (t->con.mode & CON_AXIS2) { | ||||
| mul_v3_v3fl(global_dir, t->spacemtx[2], global_dir[0]); | mul_v3_v3fl(global_dir, t->spacemtx[2], global_dir[0]); | ||||
| } | } | ||||
| } | } | ||||
| else { | else { | ||||
| mul_v3_m3v3(global_dir, t->spacemtx, global_dir); | mul_v3_m3v3(global_dir, t->spacemtx, global_dir); | ||||
| } | } | ||||
| if (t->flag & T_2D_EDIT) { | |||||
| removeAspectRatio(t, global_dir); | |||||
| } | |||||
| } | } | ||||
| else { | else { | ||||
| copy_v3_v3(global_dir, t->values); | copy_v3_v3(global_dir, t->values); | ||||
| t->tsnap.snapElem = 0; | t->tsnap.snapElem = 0; | ||||
| applySnapping(t, global_dir); | applySnapping(t, global_dir); | ||||
| transform_snap_grid(t, global_dir); | transform_snap_grid(t, global_dir); | ||||
| ▲ Show 20 Lines • Show All 84 Lines • Show Last 20 Lines | |||||