Skip to content

Commit

Permalink
Update for changes to operator names
Browse files Browse the repository at this point in the history
  • Loading branch information
ideasman42 committed Mar 1, 2019
1 parent 3206bcc commit 032366f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion archipack/archipack_thumbs.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def generateThumb(context, cls, preset, engine):
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:
Expand Down
2 changes: 1 addition & 1 deletion object_fracture_crack/operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def draw(self, context):
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"

Expand Down
4 changes: 2 additions & 2 deletions render_povray/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -1911,7 +1911,7 @@ def draw(self,context):
#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"

Expand Down Expand Up @@ -2121,7 +2121,7 @@ def draw(self, context):
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"

Expand Down

0 comments on commit 032366f

Please sign in to comment.