Update for changes to operator names

This commit is contained in:
Campbell Barton 2019-03-02 00:24:58 +11:00
parent 3206bcc4c8
commit 032366f9e7
3 changed files with 4 additions and 4 deletions

View File

@ -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:

View File

@ -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"

View File

@ -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"