diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2022-03-28 19:49:31 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2022-03-28 19:55:13 +0300 |
commit | 854af0cd09f194fadb688e899916cdc91e931623 (patch) | |
tree | a21b361c8d7680842c52c5f28c445a06ae641539 /source/blender/editors/space_view3d/view3d_cursor_snap.c | |
parent | 39df927b4a7617e8ec7668d1ddfc878c43642599 (diff) |
Cleanup/Refactor: remove unused 'SNAP_ONLY_ACTIVE' enum parameter
`SNAP_ONLY_ACTIVE` was implemented in order to be used in the Knife tool,
but the project did not go ahead.
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_cursor_snap.c')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_cursor_snap.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/source/blender/editors/space_view3d/view3d_cursor_snap.c b/source/blender/editors/space_view3d/view3d_cursor_snap.c index 53f7b3d5871..f3e45a14565 100644 --- a/source/blender/editors/space_view3d/view3d_cursor_snap.c +++ b/source/blender/editors/space_view3d/view3d_cursor_snap.c @@ -620,9 +620,6 @@ static void v3d_cursor_snap_update(V3DSnapCursorState *state, snap_elements &= ~SCE_SNAP_MODE_EDGE_PERPENDICULAR; } - eSnapSelect snap_select = (state->flag & V3D_SNAPCURSOR_SNAP_ONLY_ACTIVE) ? SNAP_ONLY_ACTIVE : - SNAP_ALL; - eSnapEditType edit_mode_type = (state->flag & V3D_SNAPCURSOR_SNAP_EDIT_GEOM_FINAL) ? SNAP_GEOM_FINAL : (state->flag & V3D_SNAPCURSOR_SNAP_EDIT_GEOM_CAGE) ? @@ -640,7 +637,7 @@ static void v3d_cursor_snap_update(V3DSnapCursorState *state, v3d, snap_elements, &(const struct SnapObjectParams){ - .snap_select = snap_select, + .snap_select = SNAP_ALL, .edit_mode_type = edit_mode_type, .use_occlusion_test = use_occlusion_test, }, |