From e3de755ae31503284277681b52947c02aef5d411 Mon Sep 17 00:00:00 2001 From: Germano Cavalcante Date: Thu, 10 Mar 2022 18:33:04 -0300 Subject: Transform/UI: individualize the option to use snap per editor type `3DView`'s `use_snap` option has little or nothing to do with using snapping in `UV`, `Nodes` or `Sequencer`. So there are no real advantages to keeping these options in sync. Therefore, individualize the option to use snap for each "spacetype". Reviewed By: brecht Differential Revision: https://developer.blender.org/D13310 --- source/blender/editors/animation/anim_ops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/animation') diff --git a/source/blender/editors/animation/anim_ops.c b/source/blender/editors/animation/anim_ops.c index 1e8f46fd490..5b0c5eac11b 100644 --- a/source/blender/editors/animation/anim_ops.c +++ b/source/blender/editors/animation/anim_ops.c @@ -233,7 +233,7 @@ static bool use_sequencer_snapping(bContext *C) Scene *scene = CTX_data_scene(C); short snap_flag = SEQ_tool_settings_snap_flag_get(scene); - return (scene->toolsettings->snap_flag & SCE_SNAP_SEQ) && + return (scene->toolsettings->snap_flag_seq & SCE_SNAP) && (snap_flag & SEQ_SNAP_CURRENT_FRAME_TO_STRIPS); } -- cgit v1.2.3