From f2df91eae2db3a34f8b8f355d5c7a6aa1eef1437 Mon Sep 17 00:00:00 2001 From: Nathan Lovato <12694995+NathanLovato@users.noreply.github.com> Date: Wed, 27 Jul 2022 19:30:39 +0200 Subject: Update power sequencer to work with Blender 3.3 fix: update code to work with sequencer API changes in Blender 3.X fix: Error when calling grab sequence handles due to type mismatch fix: remove FAST and FASTER playback speeds, simplify playback speed code fix: rewrite select_all_left_or_right after API change causing error fix: fix error with jump_to_cut when encountering animation frames fix: fix jump_to_cut skipping some strip ends when moving forward in time fix: jump_to_cut sometimes not working when going left fix: error when trimming effect strips chore: update license text upstream to match Blender's short format --- power_sequencer/operators/channel_offset.py | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'power_sequencer/operators/channel_offset.py') diff --git a/power_sequencer/operators/channel_offset.py b/power_sequencer/operators/channel_offset.py index b7569afa..1e9c97f7 100644 --- a/power_sequencer/operators/channel_offset.py +++ b/power_sequencer/operators/channel_offset.py @@ -1,8 +1,5 @@ # SPDX-License-Identifier: GPL-3.0-or-later -# Copyright 2016-2020 by Nathan Lovato, Daniel Oakey, Razvan Radulescu, and contributors - -# This file is part of Power Sequencer. - +# Copyright (C) 2016-2020 by Nathan Lovato, Daniel Oakey, Razvan Radulescu, and contributors from operator import attrgetter import bpy @@ -117,12 +114,11 @@ class POWER_SEQUENCER_OT_channel_offset(bpy.types.Operator): context, s.frame_final_start, s.frame_final_end, to_trim, to_delete ) - if not self.keep_selection_offset: - s.channel = comparison_function(limit_channel, s.channel + channel_offset) - if s.channel == limit_channel: - move_selection(context, [s], 0, 0) + s.channel = comparison_function(limit_channel, s.channel + channel_offset) + if s.channel == limit_channel: + move_selection(context, [s], 0, 0) - if self.keep_selection_offset: + if self.keep_selection_offset and not self.trim_target_channel: start_frame = head.frame_final_start x_difference = 0 while not head.channel == limit_channel: -- cgit v1.2.3