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/transform/transform_snap_object.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/transform/transform_snap_object.c')
-rw-r--r-- | source/blender/editors/transform/transform_snap_object.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/source/blender/editors/transform/transform_snap_object.c b/source/blender/editors/transform/transform_snap_object.c index cb06361a62d..329c5104136 100644 --- a/source/blender/editors/transform/transform_snap_object.c +++ b/source/blender/editors/transform/transform_snap_object.c @@ -494,12 +494,6 @@ static void iter_snap_objects(SnapObjectContext *sctx, const eSnapSelect snap_select = params->snap_select; Base *base_act = view_layer->basact; - if (snap_select == SNAP_ONLY_ACTIVE) { - Object *obj_eval = DEG_get_evaluated_object(sctx->runtime.depsgraph, base_act->object); - sob_callback(sctx, params, obj_eval, obj_eval->obmat, true, data); - return; - } - const bool is_in_object_mode = !base_act || base_act->object->mode == OB_MODE_OBJECT; for (Base *base = view_layer->object_bases.first; base != NULL; base = base->next) { if (!snap_object_is_snappable(sctx, snap_select, base_act, base, is_in_object_mode)) { |