File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -35,19 +35,15 @@ def menu_func(self, context):
3535class _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
You can’t perform that action at this time.
0 commit comments