From bbace1896ad8b66f9323956ac3e64707061297ae Mon Sep 17 00:00:00 2001 From: akaneyu Date: Sun, 23 Mar 2025 00:57:13 +0900 Subject: [PATCH] Support Blender 4.4 --- addon/__init__.py | 4 ++-- addon/operators.py | 18 +++++++++++++----- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/addon/__init__.py b/addon/__init__.py index b43c7cf..58cb972 100644 --- a/addon/__init__.py +++ b/addon/__init__.py @@ -1,5 +1,5 @@ ''' - Copyright (C) 2021 - 2024 Akaneyu + Copyright (C) 2021 - 2025 Akaneyu This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -18,7 +18,7 @@ bl_info = { "name": "Image Editor Plus", "author": "akaneyu", - "version": (1, 9, 0), + "version": (1, 10, 0), "blender": (3, 3, 0), "location": "Image", "warning": "", diff --git a/addon/operators.py b/addon/operators.py index 3ed921b..13b9339 100644 --- a/addon/operators.py +++ b/addon/operators.py @@ -1,5 +1,5 @@ ''' - Copyright (C) 2021 - 2024 Akaneyu + Copyright (C) 2021 - 2025 Akaneyu This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -26,7 +26,9 @@ class IMAGE_EDITOR_PLUS_OT_make_selection(bpy.types.Operator): bl_idname = "image_editor_plus.make_selection" bl_label = "Make Selection" - def __init__(self): + def __init__(self, *args, **kwargs): + super().__init__(*args, **kwargs) + self.lmb = False def modal(self, context, event): @@ -397,7 +399,9 @@ class IMAGE_EDITOR_PLUS_OT_move_layer(bpy.types.Operator): bl_idname = "image_editor_plus.move_layer" bl_label = "Move Layer" - def __init__(self): + def __init__(self, *args, **kwargs): + super().__init__(*args, **kwargs) + self.start_input_position = [0, 0] self.start_layer_location = [0, 0] @@ -885,7 +889,9 @@ class IMAGE_EDITOR_PLUS_OT_rotate_layer_arbitrary(bpy.types.Operator): bl_idname = "image_editor_plus.rotate_layer_arbitrary" bl_label = "Rotate Layer Arbitrary" - def __init__(self): + def __init__(self, *args, **kwargs): + super().__init__(*args, **kwargs) + self.start_input_position = [0, 0] self.start_layer_angle = 0 @@ -967,7 +973,9 @@ class IMAGE_EDITOR_PLUS_OT_scale_layer(bpy.types.Operator): bl_idname = "image_editor_plus.scale_layer" bl_label = "Scale Layer" - def __init__(self): + def __init__(self, *args, **kwargs): + super().__init__(*args, **kwargs) + self.start_input_position = [0, 0] self.start_layer_scale_x = 1.0 self.start_layer_scale_y = 1.0