Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform_manipulator.c
| Show First 20 Lines • Show All 980 Lines • ▼ Show 20 Lines | switch (v3d->twmode) { | ||||
| case V3D_MANIP_VIEW: | case V3D_MANIP_VIEW: | ||||
| { | { | ||||
| float mat[3][3]; | float mat[3][3]; | ||||
| copy_m3_m4(mat, rv3d->viewinv); | copy_m3_m4(mat, rv3d->viewinv); | ||||
| normalize_m3(mat); | normalize_m3(mat); | ||||
| copy_m4_m3(rv3d->twmat, mat); | copy_m4_m3(rv3d->twmat, mat); | ||||
| break; | break; | ||||
| } | } | ||||
| default: /* V3D_MANIP_CUSTOM */ | case V3D_MANIP_CUSTOM: | ||||
| { | { | ||||
| float mat[3][3]; | float mat[3][3]; | ||||
| if (applyTransformOrientation(C, mat, NULL, v3d->twmode - V3D_MANIP_CUSTOM)) { | if (applyTransformOrientation(v3d->custom_orientation, mat, NULL)) { | ||||
| copy_m4_m3(rv3d->twmat, mat); | copy_m4_m3(rv3d->twmat, mat); | ||||
| } | } | ||||
| break; | break; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 389 Lines • Show Last 20 Lines | |||||