Skip to content

Commit eb6d157

Browse files
committed
Revert "Fix _OgreCommonExport_.converter not initialized on Blender 4.4."
This reverts commit 7d80f9f.
1 parent 57cdf56 commit eb6d157

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

io_ogre/ui/export.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,15 @@ def menu_func(self, context):
3535
class _OgreCommonExport_(object):
3636

3737
called_from_UI = False
38-
converter = "unknown"
3938

4039
@classmethod
4140
def poll(cls, context):
4241
if context.active_object and context.mode != 'EDIT_MESH':
4342
return True
4443

45-
# https://docs.blender.org/api/current/bpy.utils.html#bpy.utils.register_class
46-
# > If the class has a register class method it will be called before registration.
47-
# call chain: __init__.py::register() -> bpy.utils.register_class() -> (Blender internals) -> Self::register()
48-
@classmethod
49-
def register(cls):
50-
cls.converter = detect_converter_type()
44+
def __init__(self):
45+
# Check that converter is setup
46+
self.converter = detect_converter_type()
5147

5248
def invoke(self, context, event):
5349
# Update the interface with the config values

0 commit comments

Comments
 (0)