diff options
Diffstat (limited to 'archipack')
-rw-r--r-- | archipack/__init__.py | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/archipack/__init__.py b/archipack/__init__.py index 7707abd3..0f5d3a86 100644 --- a/archipack/__init__.py +++ b/archipack/__init__.py @@ -63,7 +63,7 @@ if "bpy" in locals(): imp.reload(archipack_floor) imp.reload(archipack_rendering) - print("archipack: reload ready") + # print("archipack: reload ready") else: from . import archipack_progressbar from . import archipack_material @@ -82,7 +82,7 @@ else: from . import archipack_floor from . import archipack_rendering - print("archipack: ready") + # print("archipack: ready") # noinspection PyUnresolvedReferences import bpy @@ -433,9 +433,8 @@ def draw_menu(self, context): ).preset_operator = "archipack.roof" -class ARCHIPACK_create_menu(Menu): +class ARCHIPACK_MT_create(Menu): bl_label = 'Archipack' - bl_idname = 'ARCHIPACK_create_menu' def draw(self, context): draw_menu(self, context) @@ -450,7 +449,7 @@ def menu_func(self, context): # either draw sub menu or right at end of this one if context.user_preferences.addons[__name__].preferences.create_submenu: layout.operator_context = 'INVOKE_REGION_WIN' - layout.menu("ARCHIPACK_create_menu", icon_value=icons["archipack"].icon_id) + layout.menu("ARCHIPACK_MT_create", icon_value=icons["archipack"].icon_id) else: draw_menu(self, context) @@ -504,14 +503,14 @@ def register(): WindowManager.archipack = PointerProperty(type=archipack_data) bpy.utils.register_class(Archipack_Pref) update_panel(None, bpy.context) - bpy.utils.register_class(ARCHIPACK_create_menu) + bpy.utils.register_class(ARCHIPACK_MT_create) bpy.types.INFO_MT_mesh_add.append(menu_func) def unregister(): global icons_collection bpy.types.INFO_MT_mesh_add.remove(menu_func) - bpy.utils.unregister_class(ARCHIPACK_create_menu) + bpy.utils.unregister_class(ARCHIPACK_MT_create) bpy.utils.unregister_class(TOOLS_PT_Archipack_Tools) bpy.utils.unregister_class(TOOLS_PT_Archipack_Create) |