[Bf-extensions-cvs] [87889365] master: Fix T84616: Power Sequencer 2.90 API update

Robert Guetzkow noreply at git.blender.org
Wed Jan 13 09:50:35 CET 2021


Commit: 87889365fe562e594fa989ef6315c001e2cbe63a
Author: Robert Guetzkow
Date:   Wed Jan 13 09:43:13 2021 +0100
Branches: master
https://developer.blender.org/rBA87889365fe562e594fa989ef6315c001e2cbe63a

Fix T84616: Power Sequencer 2.90 API update

The Power Sequencer wasn't updated to use the 2.90 API which
changed the selection operators for the sequencer. This commit
replaces the old operator with the new
`bpy.ops.sequencer.select_side_of_frame` to achieve the same
functionality as before.

Credit for the identification and fix suggestion goes to @kreako

Reviewed By: campbellbarton

Differential Revision: https://developer.blender.org/D10089

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

M	power_sequencer/__init__.py
M	power_sequencer/operators/select_all_left_or_right.py

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

diff --git a/power_sequencer/__init__.py b/power_sequencer/__init__.py
index 83a53365..3cb5d4f2 100755
--- a/power_sequencer/__init__.py
+++ b/power_sequencer/__init__.py
@@ -38,8 +38,8 @@ bl_info = {
     "name": "Power Sequencer",
     "description": "Video editing tools for content creators",
     "author": "Nathan Lovato",
-    "version": (1, 5, 0),
-    "blender": (2, 81, 0),
+    "version": (1, 5, 1),
+    "blender": (2, 90, 1),
     "location": "Sequencer",
     "tracker_url": "https://github.com/GDquest/Blender-power-sequencer/issues",
     "doc_url": "https://www.gdquest.com/docs/documentation/power-sequencer/",
diff --git a/power_sequencer/operators/select_all_left_or_right.py b/power_sequencer/operators/select_all_left_or_right.py
index 01e35306..b2e08bb8 100644
--- a/power_sequencer/operators/select_all_left_or_right.py
+++ b/power_sequencer/operators/select_all_left_or_right.py
@@ -62,4 +62,4 @@ class POWER_SEQUENCER_OT_select_all_left_or_right(bpy.types.Operator):
         return context.sequences
 
     def execute(self, context):
-        return bpy.ops.sequencer.select("INVOKE_DEFAULT", left_right=self.side)
+        return bpy.ops.sequencer.select_side_of_frame("INVOKE_DEFAULT", side=self.side)



More information about the Bf-extensions-cvs mailing list