diff --git a/archipack/archipack_thumbs.py b/archipack/archipack_thumbs.py index c3cfea7d5a863d0767c31d165d73b1793bd9d2a9..46d015437d7ec23a3baed29c9fe63446d93f3f4c 100644 --- a/archipack/archipack_thumbs.py +++ b/archipack/archipack_thumbs.py @@ -221,7 +221,7 @@ if __name__ == "__main__": engine = arg[7:] try: # log("### ENABLE %s ADDON ############################" % module) - bpy.ops.wm.addon_enable(module=module) + bpy.ops.preferences.addon_enable(module=module) # log("### MATLIB PATH ############################") bpy.context.preferences.addons[module].preferences.matlib_path = matlib except: diff --git a/object_fracture_crack/operator.py b/object_fracture_crack/operator.py index 0620a308b4285a95ac182aa4ecd5e1ab83bbbf4f..e0dbc5fdee6199500fed407dd12e877404347d4b 100644 --- a/object_fracture_crack/operator.py +++ b/object_fracture_crack/operator.py @@ -123,7 +123,7 @@ class crackitPanel(Panel): col = box.column() col.label(text="Please enable Object: Cell Fracture addon", icon="INFO") col.separator() - col.operator("wm.addon_userpref_show", + col.operator("preferences.addon_show", text="Go to Cell Fracture addon", icon="PREFERENCES").module = "object_fracture_cell" diff --git a/render_povray/ui.py b/render_povray/ui.py index 64fbf792242af312a54c038b85e2fb6322149f31..28cb81f481680ea7fda36cbdfdca4d3e913a82d2 100644 --- a/render_povray/ui.py +++ b/render_povray/ui.py @@ -1911,7 +1911,7 @@ class BasicShapesMenu(bpy.types.Menu): #col = box.column() layout.label(text="Please enable Add Mesh: Extra Objects addon", icon="INFO") #layout.separator() - layout.operator("wm.addon_userpref_show", + layout.operator("preferences.addon_show", text="Go to Add Mesh: Extra Objects addon", icon="PREFERENCES").module = "add_mesh_extra_objects" @@ -2121,7 +2121,7 @@ class TEXT_PT_povray_custom_code(TextButtonsPanel, bpy.types.Panel): layout.label(text="default pov include path ") layout.label(text="in addon preferences") #layout.separator() - layout.operator("wm.addon_userpref_show", + layout.operator("preferences.addon_show", text="Go to Render: POV-Ray addon", icon="PREFERENCES").module = "render_povray"