diff options
author | Sergey Sharybin <sergey@blender.org> | 2021-01-27 19:07:48 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey@blender.org> | 2021-01-28 13:34:53 +0300 |
commit | bf721fb6798bc21206e9e8b3c0f9b81e8ac9400f (patch) | |
tree | 272ada4699a194a92bca1cef21027b2acd2225f0 /source/blender/editors/space_clip/tracking_select.c | |
parent | 3b66f40d40e4e7fd5d301f88e57c04cd0945dbf0 (diff) |
Fix panning with Lock-to-Selection and no selection in Clip Editor
Rather self-explanatory. Never worked since the initial implementation.
It is possible to preserve lock-to-selection option with no selection
nowadays (since the fix for T84850). So now the Lock-to-Selection option
is fully under user control. Surely, the panning and zooming is also
properly supported now in the described scenario.
Differential Revision: https://developer.blender.org/D10226
Diffstat (limited to 'source/blender/editors/space_clip/tracking_select.c')
-rw-r--r-- | source/blender/editors/space_clip/tracking_select.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/source/blender/editors/space_clip/tracking_select.c b/source/blender/editors/space_clip/tracking_select.c index ecd73f82e22..558c0bec11d 100644 --- a/source/blender/editors/space_clip/tracking_select.c +++ b/source/blender/editors/space_clip/tracking_select.c @@ -875,10 +875,7 @@ static int select_all_exec(bContext *C, wmOperator *op) bool has_selection = false; ED_clip_select_all(sc, action, &has_selection); - if (!has_selection) { - sc->flag &= ~SC_LOCK_SELECTION; - } - else { + if (has_selection) { ED_clip_view_lock_state_restore_no_jump(C, &lock_state); } |