Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/gizmo_library/gizmo_types/move3d_gizmo.c
| Show First 20 Lines • Show All 277 Lines • ▼ Show 20 Lines | if (inter->snap_context_v3d) { | ||||
| inter->snap_context_v3d, | inter->snap_context_v3d, | ||||
| (SCE_SNAP_MODE_VERTEX | SCE_SNAP_MODE_EDGE | SCE_SNAP_MODE_FACE), | (SCE_SNAP_MODE_VERTEX | SCE_SNAP_MODE_EDGE | SCE_SNAP_MODE_FACE), | ||||
| &(const struct SnapObjectParams){ | &(const struct SnapObjectParams){ | ||||
| .snap_select = SNAP_ALL, | .snap_select = SNAP_ALL, | ||||
| .use_object_edit_cage = true, | .use_object_edit_cage = true, | ||||
| .use_occlusion_test = true, | .use_occlusion_test = true, | ||||
| }, | }, | ||||
| mval_fl, | mval_fl, | ||||
| NULL, | |||||
| &dist_px, | &dist_px, | ||||
| co, | co, | ||||
| NULL)) { | NULL)) { | ||||
| float matrix_space_inv[4][4]; | float matrix_space_inv[4][4]; | ||||
| invert_m4_m4(matrix_space_inv, gz->matrix_space); | invert_m4_m4(matrix_space_inv, gz->matrix_space); | ||||
| mul_v3_m4v3(move->prop_co, matrix_space_inv, co); | mul_v3_m4v3(move->prop_co, matrix_space_inv, co); | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 173 Lines • Show Last 20 Lines | |||||