[Bf-extensions-cvs] [032366f9] master: Update for changes to operator names

Campbell Barton noreply at git.blender.org
Fri Mar 1 14:26:56 CET 2019


Commit: 032366f9e7bae4c1db2108037f1f5c246937b5fb
Author: Campbell Barton
Date:   Sat Mar 2 00:24:58 2019 +1100
Branches: master
https://developer.blender.org/rBA032366f9e7bae4c1db2108037f1f5c246937b5fb

Update for changes to operator names

===================================================================

M	archipack/archipack_thumbs.py
M	object_fracture_crack/operator.py
M	render_povray/ui.py

===================================================================

diff --git a/archipack/archipack_thumbs.py b/archipack/archipack_thumbs.py
index c3cfea7d..46d01543 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 0620a308..e0dbc5fd 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 64fbf792..28cb81f4 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"



More information about the Bf-extensions-cvs mailing list