Support Blender 4.4

This commit is contained in:
akaneyu 2025-03-30 23:45:46 +09:00
parent b990ec5e74
commit 1abff7587e
2 changed files with 9 additions and 8 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
it under the terms of the GNU General Public License as published by
@ -18,7 +18,7 @@
bl_info = {
"name": "Symmetrize Texture",
"author": "akaneyu",
"version": (1, 2, 0),
"version": (1, 3, 0),
"blender": (3, 3, 0),
"location": "View3D",
"warning": "",

View File

@ -1,5 +1,5 @@
'''
Copyright (C) 2021 - 2023 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
@ -29,7 +29,9 @@ class SYMMETRIZE_TEXTURE_OT_use_3d_brush(bpy.types.Operator):
bl_label = "Use 3D Brush"
bl_options = {'REGISTER', 'UNDO'}
def __init__(self):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.native_lib = None
self.lmb = False
self.image = None
@ -290,9 +292,6 @@ class SYMMETRIZE_TEXTURE_OT_mirrored_copy(bpy.types.Operator):
bl_label = "Mirrored Copy"
bl_options = {'REGISTER', 'UNDO'}
def __init__(self):
pass
@classmethod
def poll(cls, context):
return context.area.spaces.active.mode != 'UV' \
@ -390,7 +389,9 @@ class SYMMETRIZE_TEXTURE_OT_use_2d_brush(bpy.types.Operator):
bl_label = "Use 2D Brush"
bl_options = {'REGISTER', 'UNDO'}
def __init__(self):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.native_lib = None
self.lmb = False
self.image = None