Support Blender 4.4

This commit is contained in:
akaneyu 2025-03-23 00:57:13 +09:00
parent 6fa5629403
commit bbace1896a
2 changed files with 15 additions and 7 deletions

View File

@ -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 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 it under the terms of the GNU General Public License as published by
@ -18,7 +18,7 @@
bl_info = { bl_info = {
"name": "Image Editor Plus", "name": "Image Editor Plus",
"author": "akaneyu", "author": "akaneyu",
"version": (1, 9, 0), "version": (1, 10, 0),
"blender": (3, 3, 0), "blender": (3, 3, 0),
"location": "Image", "location": "Image",
"warning": "", "warning": "",

View File

@ -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 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 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_idname = "image_editor_plus.make_selection"
bl_label = "Make Selection" bl_label = "Make Selection"
def __init__(self): def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.lmb = False self.lmb = False
def modal(self, context, event): 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_idname = "image_editor_plus.move_layer"
bl_label = "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_input_position = [0, 0]
self.start_layer_location = [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_idname = "image_editor_plus.rotate_layer_arbitrary"
bl_label = "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_input_position = [0, 0]
self.start_layer_angle = 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_idname = "image_editor_plus.scale_layer"
bl_label = "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_input_position = [0, 0]
self.start_layer_scale_x = 1.0 self.start_layer_scale_x = 1.0
self.start_layer_scale_y = 1.0 self.start_layer_scale_y = 1.0