Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform_gizmo_3d.c
| Show First 20 Lines • Show All 1,396 Lines • ▼ Show 20 Lines | if (tc->mode & CON_APPLY) { | ||||
| else { | else { | ||||
| BLI_assert((tc->mode & CON_AXIS2) != 0); | BLI_assert((tc->mode & CON_AXIS2) != 0); | ||||
| axis_idx = MAN_AXIS_ROT_Z; | axis_idx = MAN_AXIS_ROT_Z; | ||||
| negate_v3_v3(mat_basis[2], tc->mtx[2]); | negate_v3_v3(mat_basis[2], tc->mtx[2]); | ||||
| } | } | ||||
| } | } | ||||
| else { | else { | ||||
| axis_idx = MAN_AXIS_ROT_C; | axis_idx = MAN_AXIS_ROT_C; | ||||
| negate_v3_v3(mat_basis[2], t->orient_matrix[t->orient_axis]); | negate_v3_v3(mat_basis[2], t->spacemtx[t->orient_axis]); | ||||
| scale *= 1.2f; | scale *= 1.2f; | ||||
| line_with -= 1.0f; | line_with -= 1.0f; | ||||
| } | } | ||||
| copy_v3_v3(mat_basis[3], t->center_global); | copy_v3_v3(mat_basis[3], t->center_global); | ||||
| mat_basis[2][3] = -dot_v3v3(mat_basis[2], mat_basis[3]); | mat_basis[2][3] = -dot_v3v3(mat_basis[2], mat_basis[3]); | ||||
| if (ED_view3d_win_to_3d_on_plane( | if (ED_view3d_win_to_3d_on_plane( | ||||
| ▲ Show 20 Lines • Show All 1,138 Lines • Show Last 20 Lines | |||||