[Bf-blender-cvs] [a2e3005b422] blender-v3.2-release: Fix VSE view clamping not working

Richard Antalik noreply at git.blender.org
Tue May 3 10:55:57 CEST 2022


Commit: a2e3005b422fe745ee2d53f1c00ca8c443e000c5
Author: Richard Antalik
Date:   Tue May 3 10:53:20 2022 +0200
Branches: blender-v3.2-release
https://developer.blender.org/rBa2e3005b422fe745ee2d53f1c00ca8c443e000c5

Fix VSE view clamping not working

Clamping was set up, but `v2d->cur` was never actually modified.

===================================================================

M	source/blender/editors/space_sequencer/space_sequencer.c

===================================================================

diff --git a/source/blender/editors/space_sequencer/space_sequencer.c b/source/blender/editors/space_sequencer/space_sequencer.c
index 2ce237a53f2..f95c5f196b6 100644
--- a/source/blender/editors/space_sequencer/space_sequencer.c
+++ b/source/blender/editors/space_sequencer/space_sequencer.c
@@ -600,6 +600,8 @@ static void sequencer_main_clamp_view(const bContext *C, ARegion *region)
     view_clamped.ymin = strip_boundbox.ymin;
     view_clamped.ymax = min_ff(strip_boundbox.ymax, strip_boundbox.ymin + range_y);
   }
+
+  v2d->cur = view_clamped;
 }
 
 static void sequencer_main_region_clamp_custom_set(const bContext *C, ARegion *region)



More information about the Bf-blender-cvs mailing list