From cdfa3feb911164118fcc5b574b3e1a35c8f99c72 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 16 Jan 2021 11:29:57 +1100 Subject: Add Object Tool: support incremental snapping This adds a "Snap to" option that allows using all the scenes snap settings which includes incremental & absolute grid snapping options. This is optional because always following scene snapping would not snap to geometry by default (which seems to be the most useful default). --- source/blender/editors/include/ED_gizmo_library.h | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/editors/include/ED_gizmo_library.h') diff --git a/source/blender/editors/include/ED_gizmo_library.h b/source/blender/editors/include/ED_gizmo_library.h index 434ab743d18..dfc8cfea5ce 100644 --- a/source/blender/editors/include/ED_gizmo_library.h +++ b/source/blender/editors/include/ED_gizmo_library.h @@ -264,6 +264,7 @@ struct SnapObjectContext *ED_gizmotypes_snap_3d_context_ensure(struct Scene *sce bool ED_gizmotypes_snap_3d_invert_snap_get(struct wmGizmo *gz); void ED_gizmotypes_snap_3d_toggle_set(struct wmGizmo *gz, bool enable); void ED_gizmotypes_snap_3d_toggle_clear(struct wmGizmo *gz); +bool ED_gizmotypes_snap_3d_is_enabled(struct wmGizmo *gz); short ED_gizmotypes_snap_3d_update(struct wmGizmo *gz, struct Depsgraph *depsgraph, -- cgit v1.2.3