Commit b05144ed authored by Campbell Barton's avatar Campbell Barton

Update for changes in Blender

parent 6e932261
......@@ -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)
......@@ -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)
......@@ -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)
......@@ -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)
......@@ -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()
......@@ -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:
......
......@@ -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("VIEW3D_MT_Camera_Options2", icon='OUTLINER_OB_CAMERA')
UseSeparator(self, context)
layout.operator_menu_enum("object.constraint_add", "type", text="Add Constraint", icon='CONSTRAINT')
......@@ -531,7 +531,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')
......@@ -564,7 +564,7 @@ class VIEW3D_PT_Toolshelf_menu(View3DPanel, Panel):
layout.menu("VIEW3D_MT_MirrorMenu2", icon='MOD_MIRROR')
layout.menu("VIEW3D_MT_CursorMenuLite2", icon='PIVOT_CURSOR')
layout.menu("VIEW3D_MT_ParentMenu2", icon='PIVOT_ACTIVE')
layout.menu("VIEW3D_MT_armature_specials", icon='SOLO_OFF')
layout.menu("VIEW3D_MT_armature_context_menu", icon='SOLO_OFF')
layout.menu("VIEW3D_MT_edit_armature_roll",
icon='BONE_DATA')
UseSeparator(self, context)
......@@ -601,7 +601,7 @@ class VIEW3D_PT_Toolshelf_menu(View3DPanel, Panel):
layout.menu("VIEW3D_MT_pose_apply", icon='AUTO')
layout.operator("pose.relax", icon='ARMATURE_DATA')
layout.menu("VIEW3D_MT_KeyframeMenu2", icon='KEY_HLT')
layout.menu("VIEW3D_MT_pose_specials", icon='SOLO_OFF')
layout.menu("VIEW3D_MT_pose_context_menu", icon='SOLO_OFF')
layout.menu("VIEW3D_MT_pose_group", icon='GROUP_BONE')
UseSeparator(self, context)
layout.operator_menu_enum("pose.constraint_add", "type", text="Add Constraint", icon='CONSTRAINT_BONE')
......@@ -631,7 +631,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')
......@@ -690,7 +690,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')
......@@ -750,7 +750,7 @@ class VIEW3D_PT_Toolshelf_menu(View3DPanel, Panel):
icon="SMOOTHCURVE")
UseSeparator(self, context)
layout.menu("VIEW3D_MT_particle", icon='PARTICLEMODE')
layout.menu("VIEW3D_MT_particle_specials", text="Hair Specials", icon='HAIR')
layout.menu("VIEW3D_MT_particle_context_menu", text="Hair Specials", icon='HAIR')
UseSeparator(self, context)
layout.operator("object.delete", text="Delete Object", icon='X')
UseSeparator(self, context)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment