Skip to content
Snippets Groups Projects
Commit 964a38d0 authored by Dalai Felinto's avatar Dalai Felinto
Browse files

UV_OT_export_layout: Workaround to make the addon register

__name__ is never "__main__" here, but instead it is the module name (io_mesh_uv_layout).
parent b7630913
No related branches found
No related tags found
No related merge requests found
......@@ -301,14 +301,14 @@ def menu_func(self, context):
def register():
bpy.utils.register_module(__name__)
bpy.utils.register_class(ExportUVLayout)
bpy.types.IMAGE_MT_uvs.append(menu_func)
def unregister():
bpy.utils.unregister_module(__name__)
bpy.utils.unregister_class(ExportUVLayout)
bpy.types.IMAGE_MT_uvs.remove(menu_func)
if __name__ == "__main__":
if __name__ == 'io_mesh_uv_layout':
register()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment