Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey@blender.org>2021-01-27 19:07:48 +0300
committerSergey Sharybin <sergey@blender.org>2021-01-28 13:34:53 +0300
commitbf721fb6798bc21206e9e8b3c0f9b81e8ac9400f (patch)
tree272ada4699a194a92bca1cef21027b2acd2225f0 /source/blender/editors/space_clip/clip_intern.h
parent3b66f40d40e4e7fd5d301f88e57c04cd0945dbf0 (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/clip_intern.h')
-rw-r--r--source/blender/editors/space_clip/clip_intern.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/space_clip/clip_intern.h b/source/blender/editors/space_clip/clip_intern.h
index b9a69204281..202dc00e365 100644
--- a/source/blender/editors/space_clip/clip_intern.h
+++ b/source/blender/editors/space_clip/clip_intern.h
@@ -178,6 +178,8 @@ void clip_view_center_to_point(SpaceClip *sc, float x, float y);
bool clip_view_calculate_view_selection(
const struct bContext *C, bool fit, float *r_offset_x, float *r_offset_y, float *r_zoom);
+bool clip_view_has_locked_selection(const struct bContext *C);
+
void clip_draw_sfra_efra(struct View2D *v2d, struct Scene *scene);
/* tracking_ops.c */