Update for changes to operator names
This commit is contained in:
parent
3206bcc4c8
commit
032366f9e7
|
@ -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:
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in New Issue