Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/gizmo_library/gizmo_types/move3d_gizmo.c
| Show First 20 Lines • Show All 357 Lines • ▼ Show 20 Lines | #endif | ||||
| if (use_snap) { | if (use_snap) { | ||||
| ScrArea *sa = CTX_wm_area(C); | ScrArea *sa = CTX_wm_area(C); | ||||
| if (sa) { | if (sa) { | ||||
| switch (sa->spacetype) { | switch (sa->spacetype) { | ||||
| case SPACE_VIEW3D: { | case SPACE_VIEW3D: { | ||||
| inter->snap_context_v3d = ED_transform_snap_object_context_create_view3d( | inter->snap_context_v3d = ED_transform_snap_object_context_create_view3d( | ||||
| CTX_data_main(C), | CTX_data_main(C), | ||||
| CTX_data_scene(C), | CTX_data_scene(C), | ||||
| CTX_data_depsgraph(C), | CTX_data_ensure_evaluated_depsgraph(C), | ||||
| 0, | 0, | ||||
| CTX_wm_region(C), | CTX_wm_region(C), | ||||
| CTX_wm_view3d(C)); | CTX_wm_view3d(C)); | ||||
| break; | break; | ||||
| } | } | ||||
| default: | default: | ||||
| /* Not yet supported. */ | /* Not yet supported. */ | ||||
| BLI_assert(0); | BLI_assert(0); | ||||
| ▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines | |||||