[Bf-extensions-cvs] [b05144ed] master: Update for changes in Blender

Campbell Barton noreply at git.blender.org
Tue Mar 12 01:06:42 CET 2019


Commit: b05144ed3765b52b3455fed34ba82c3b6c431d61
Author: Campbell Barton
Date:   Tue Mar 12 11:06:17 2019 +1100
Branches: master
https://developer.blender.org/rBACb05144ed3765b52b3455fed34ba82c3b6c431d61

Update for changes in Blender

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

M	amaranth/animation/frame_current.py
M	amaranth/render/border_camera.py
M	amaranth/render/passepartout.py
M	amaranth/scene/material_remove_unassigned.py
M	amaranth/scene/refresh.py
M	mesh_ktools.py
M	space_view3d_toolshelf_menu.py

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

diff --git a/amaranth/animation/frame_current.py b/amaranth/animation/frame_current.py
index 8fc7c085..6bea2009 100644
--- a/amaranth/animation/frame_current.py
+++ b/amaranth/animation/frame_current.py
@@ -36,10 +36,10 @@ def button_frame_current(self, context):
 
 
 def register():
-    bpy.types.VIEW3D_MT_object_specials.append(button_frame_current)
-    bpy.types.VIEW3D_MT_pose_specials.append(button_frame_current)
+    bpy.types.VIEW3D_MT_object_context_menu.append(button_frame_current)
+    bpy.types.VIEW3D_MT_pose_context_menu.append(button_frame_current)
 
 
 def unregister():
-    bpy.types.VIEW3D_MT_object_specials.remove(button_frame_current)
-    bpy.types.VIEW3D_MT_pose_specials.remove(button_frame_current)
+    bpy.types.VIEW3D_MT_object_context_menu.remove(button_frame_current)
+    bpy.types.VIEW3D_MT_pose_context_menu.remove(button_frame_current)
diff --git a/amaranth/render/border_camera.py b/amaranth/render/border_camera.py
index 5f5a35dc..3d286080 100644
--- a/amaranth/render/border_camera.py
+++ b/amaranth/render/border_camera.py
@@ -56,9 +56,9 @@ def button_render_border_camera(self, context):
 
 def register():
     bpy.utils.register_class(AMTH_VIEW3D_OT_render_border_camera)
-    bpy.types.VIEW3D_MT_object_specials.append(button_render_border_camera)
+    bpy.types.VIEW3D_MT_object_context_menu.append(button_render_border_camera)
 
 
 def unregister():
     bpy.utils.unregister_class(AMTH_VIEW3D_OT_render_border_camera)
-    bpy.types.VIEW3D_MT_object_specials.remove(button_render_border_camera)
+    bpy.types.VIEW3D_MT_object_context_menu.remove(button_render_border_camera)
diff --git a/amaranth/render/passepartout.py b/amaranth/render/passepartout.py
index dfc4205c..7d65299c 100644
--- a/amaranth/render/passepartout.py
+++ b/amaranth/render/passepartout.py
@@ -38,8 +38,8 @@ def button_camera_passepartout(self, context):
 
 
 def register():
-    bpy.types.VIEW3D_MT_object_specials.append(button_camera_passepartout)
+    bpy.types.VIEW3D_MT_object_context_menu.append(button_camera_passepartout)
 
 
 def unregister():
-    bpy.types.VIEW3D_MT_object_specials.remove(button_camera_passepartout)
+    bpy.types.VIEW3D_MT_object_context_menu.remove(button_camera_passepartout)
diff --git a/amaranth/scene/material_remove_unassigned.py b/amaranth/scene/material_remove_unassigned.py
index 8b9e2085..f19bc3d2 100644
--- a/amaranth/scene/material_remove_unassigned.py
+++ b/amaranth/scene/material_remove_unassigned.py
@@ -100,9 +100,9 @@ def ui_material_remove_unassigned(self, context):
 
 def register():
     bpy.utils.register_class(AMTH_OBJECT_OT_material_remove_unassigned)
-    bpy.types.MATERIAL_MT_specials.append(ui_material_remove_unassigned)
+    bpy.types.MATERIAL_MT_context_menu.append(ui_material_remove_unassigned)
 
 
 def unregister():
     bpy.utils.unregister_class(AMTH_OBJECT_OT_material_remove_unassigned)
-    bpy.types.MATERIAL_MT_specials.remove(ui_material_remove_unassigned)
+    bpy.types.MATERIAL_MT_context_menu.remove(ui_material_remove_unassigned)
diff --git a/amaranth/scene/refresh.py b/amaranth/scene/refresh.py
index d50bc199..3ef5e6b7 100644
--- a/amaranth/scene/refresh.py
+++ b/amaranth/scene/refresh.py
@@ -60,7 +60,7 @@ def button_refresh(self, context):
 
 def register():
     bpy.utils.register_class(AMTH_SCENE_OT_refresh)
-    bpy.types.VIEW3D_MT_object_specials.append(button_refresh)
+    bpy.types.VIEW3D_MT_object_context_menu.append(button_refresh)
     kc = bpy.context.window_manager.keyconfigs.addon
     km = kc.keymaps.new(name="Window")
     kmi = km.keymap_items.new("scene.refresh", "F5", "PRESS",
@@ -70,7 +70,7 @@ def register():
 
 def unregister():
     bpy.utils.unregister_class(AMTH_SCENE_OT_refresh)
-    bpy.types.VIEW3D_MT_object_specials.remove(button_refresh)
+    bpy.types.VIEW3D_MT_object_context_menu.remove(button_refresh)
     for km, kmi in KEYMAPS:
         km.keymap_items.remove(kmi)
     KEYMAPS.clear()
diff --git a/mesh_ktools.py b/mesh_ktools.py
index 699f9412..9829d8d4 100644
--- a/mesh_ktools.py
+++ b/mesh_ktools.py
@@ -2475,8 +2475,8 @@ def register():
         bpy.utils.register_class(ktools)
         bpy.utils.register_class(ktools_mesh)
 
-        bpy.types.VIEW3D_MT_edit_mesh_specials.prepend(menu_func)
-        bpy.types.VIEW3D_MT_object_specials.prepend(menu_func_ob)
+        bpy.types.VIEW3D_MT_edit_mesh_context_menu.prepend(menu_func)
+        bpy.types.VIEW3D_MT_object_context_menu.prepend(menu_func_ob)
 
         kc = bpy.context.window_manager.keyconfigs.addon
         if kc:
@@ -2509,8 +2509,8 @@ def unregister():
         bpy.utils.unregister_class(ktools)
         bpy.utils.unregister_class(ktools_mesh)
 
-        bpy.types.VIEW3D_MT_edit_mesh_specials.remove(menu_func)
-        bpy.types.VIEW3D_MT_object_specials.remove(menu_func_ob)
+        bpy.types.VIEW3D_MT_edit_mesh_context_menu.remove(menu_func)
+        bpy.types.VIEW3D_MT_object_context_menu.remove(menu_func_ob)
 
         kc = bpy.context.window_manager.keyconfigs.addon
         if kc:
diff --git a/space_view3d_toolshelf_menu.py b/space_view3d_toolshelf_menu.py
index c62bb478..4203799a 100644
--- a/space_view3d_toolshelf_menu.py
+++ b/space_view3d_toolshelf_menu.py
@@ -96,7 +96,7 @@ class VIEW3D_PT_Toolshelf_menu(View3DPanel, Panel):
             layout.menu("VIEW3D_MT_ParentMenu2", icon='PIVOT_ACTIVE')
             layout.menu("VIEW3D_MT_GroupMenu2", icon='GROUP')
             UseSeparator(self, context)
-            layout.menu("VIEW3D_MT_object_specials", text="Specials", icon='SOLO_OFF')
+            layout.menu("VIEW3D_MT_object_context_menu", text="Specials", icon='SOLO_OFF')
             if context.gpencil_data and context.gpencil_data.use_stroke_edit_mode:
                 layout.menu("VIEW3D_MT_Edit_Gpencil2", icon='GREASEPENCIL')
             layout.menu("VIEW3D_MT_Camera_Options2", icon='OUTLINER_OB_CAMERA')
@@ -128,7 +128,7 @@ class VIEW3D_PT_Toolshelf_menu(View3DPanel, Panel):
             layout.menu("VIEW3D_MT_EditCursorMenu2", icon='PIVOT_CURSOR')
             UseSeparator(self, context)
             layout.menu("VIEW3D_MT_UV_Map2", icon='MOD_UVPROJECT')
-            layout.menu("VIEW3D_MT_edit_mesh_specials", icon='SOLO_OFF')
+            layout.menu("VIEW3D_MT_edit_mesh_context_menu", icon='SOLO_OFF')
             layout.menu("VIEW3D_MT_edit_mesh_extrude", icon='XRAY')
             UseSeparator(self, context)
             layout.operator_menu_enum("object.modifier_add", "type", icon='MODIFIER')
@@ -234,7 +234,7 @@ class VIEW3D_PT_Toolshelf_menu(View3DPanel, Panel):
             layout.menu("VIEW3D_MT_ParentMenu2", icon='PIVOT_ACTIVE')
             layout.menu("VIEW3D_MT_GroupMenu2", icon='GROUP')
             UseSeparator(self, context)
-            layout.menu("VIEW3D_MT_object_specials", text="Specials", icon='SOLO_OFF')
+            layout.menu("VIEW3D_MT_object_context_menu", text="Specials", icon='SOLO_OFF')
             layout.menu("VIEW3D_MT_Camera_Options2", icon='OUTLINER_OB_CAMERA')
             UseSeparator(self, context)
             layout.operator_menu_enum("object.modifier_add", "type", icon='MODIFIER')
@@ -297,7 +297,7 @@ class VIEW3D_PT_Toolshelf_menu(View3DPanel, Panel):
             layout.menu("VIEW3D_MT_ParentMenu2", icon='PIVOT_ACTIVE')
             layout.menu("VIEW3D_MT_GroupMenu2", icon='GROUP')
             UseSeparator(self, context)
-            layout.menu("VIEW3D_MT_object_specials", text="Specials", icon='SOLO_OFF')
+            layout.menu("VIEW3D_MT_object_context_menu", text="Specials", icon='SOLO_OFF')
             layout.menu("VIEW3D_MT_Camera_Options2", icon='OUTLINER_OB_CAMERA')
             layout.operator_menu_enum("object.modifier_add", "type", icon='MODIFIER')
             layout.operator_menu_enum("object.constraint_add", "type", text="Add Constraint", icon='CONSTRAINT')
@@ -359,7 +359,7 @@ class VIEW3D_PT_Toolshelf_menu(View3DPanel, Panel):
             layout.menu("VIEW3D_MT_ParentMenu2", icon='PIVOT_ACTIVE')
             layout.menu("VIEW3D_MT_GroupMenu2", icon='GROUP')
             UseSeparator(self, context)
-            layout.menu("VIEW3D_MT_object_specials", text="Specials", icon='SOLO_OFF')
+            layout.menu("VIEW3D_MT_object_context_menu", text="Specials", icon='SOLO_OFF')
             layout.menu("VIEW3D_MT_Camera_Options2", icon='OUTLINER_OB_CAMERA')
             UseSeparator(self, context)
             layout.operator_menu_enum("object.constraint_add", "type", text="Add Constraint", icon='CONSTRAINT')
@@ -419,7 +419,7 @@ class VIEW3D_PT_Toolshelf_menu(View3DPanel, Panel):
             layout.menu("VIEW3D_MT_ParentMenu2", icon='PIVOT_ACTIVE')
             layout.menu("VIEW3D_MT_GroupMenu2", icon='GROUP')
             UseSeparator(self, context)
-            layout.menu("VIEW3D_MT_object_specials", text="Specials", icon='SOLO_OFF')
+            layout.menu("VIEW3D_MT_object_context_menu", text="Specials", icon='SOLO_OFF')
             layout.menu("VIEW3D_MT_Camera_Options2", icon='OUTLINER_OB_CAMERA')
             UseSeparator(self, context)
             layout.operator_menu_enum("object.modifier_add", "type", icon='MODIFIER')
@@ -470,7 +470,7 @@ class VIEW3D_PT_Toolshelf_menu(View3DPanel, Panel):
             layout.menu("VIEW3D_MT_ParentMenu2", icon='PIVOT_ACTIVE')
             layout.menu("VIEW3D_MT_GroupMenu2", icon='GROUP')
             UseSeparator(self, context)
-            layout.menu("VIEW3D_MT_object_specials", text="Specials", icon='SOLO_OFF')
+            layout.menu("VIEW3D_MT_object_context_menu", text="Specials", icon='SOLO_OFF')
             layout.menu("VIEW3D_MT_Camera_Options2", icon='OUTLINER_OB_CAMERA')
             UseSeparator(self, context)
             layout.operator_menu_enum("object.constraint_add", "type", text="Add Constraint", icon='CONSTRAINT')
@@ -500,7 +500,7 @@ class VIEW3D_PT_Toolshelf_menu(View3DPanel, Panel):
             layout.menu("VIEW3D_MT_ParentMenu2", icon='PIVOT_ACTIVE')
             layout.menu("VIEW3D_MT_GroupMenu2", icon='GROUP')
             UseSeparator(self, context)
-            layout.menu("VIEW3D_MT_object_specials", text="Specials", icon='SOLO_OFF')
+            layout.menu("VIEW3D_MT_object_context_menu", text="Specials", icon='SOLO_OFF')
             layout.menu

@@ Diff output truncated at 10240 characters. @@



More information about the Bf-extensions-cvs mailing list