A bunch of fixes for macro-type operators - Armatures + Objects

* Extrude and Duplicate for Armatures now use proper macros instead of manually calling transform themselves. This means that repeating these operators now works properly.
** NOTE: there's a bug with macros now which prevents the 'forked' extrude operator working correctly. Bug report filed for this.

* Included the proper operators for extrude and duplicate in the toolbar + menus. The operators used there did not activate transform, which meant that users often could not tell that the operation had occurred at all.
This commit is contained in:
Joshua Leung
2009-10-27 11:10:30 +00:00
parent 81c17a9fa3
commit 90957ed0dd
6 changed files with 30 additions and 89 deletions

View File

@@ -765,8 +765,8 @@ class VIEW3D_MT_edit_mesh(bpy.types.Menu):
layout.itemS()
layout.itemO("mesh.extrude")
layout.itemO("mesh.duplicate")
layout.itemO("mesh.extrude_move")
layout.itemO("mesh.duplicate_move")
layout.itemO("mesh.delete", text="Delete...")
layout.itemS()
@@ -1129,12 +1129,12 @@ class VIEW3D_MT_edit_armature(bpy.types.Menu):
layout.itemS()
layout.itemO("armature.extrude")
layout.itemO("armature.extrude_move")
if arm.x_axis_mirror:
layout.item_booleanO("armature.extrude", "forked", True, text="Extrude Forked")
layout.item_booleanO("armature.extrude_move", "forked", True, text="Extrude Forked")
layout.itemO("armature.duplicate")
layout.itemO("armature.duplicate_move")
layout.itemO("armature.merge")
layout.itemO("armature.fill")
layout.itemO("armature.delete")

View File

@@ -67,12 +67,12 @@ class VIEW3D_PT_tools_meshedit(View3DPanel):
col = layout.column(align=True)
col.itemL(text="Mesh:")
col.itemO("mesh.duplicate")
col.itemO("mesh.duplicate_move")
col.itemO("mesh.delete")
col = layout.column(align=True)
col.itemL(text="Modeling:")
col.itemO("mesh.extrude")
col.itemO("mesh.extrude_move")
col.itemO("mesh.subdivide")
col.itemO("mesh.loopcut")
col.itemO("mesh.spin")
@@ -245,12 +245,12 @@ class VIEW3D_PT_tools_armatureedit(View3DPanel):
col = layout.column(align=True)
col.itemL(text="Bones:")
col.itemO("armature.bone_primitive_add", text="Add")
col.itemO("armature.duplicate", text="Duplicate")
col.itemO("armature.duplicate_move", text="Duplicate")
col.itemO("armature.delete", text="Delete")
col = layout.column(align=True)
col.itemL(text="Modeling:")
col.itemO("armature.extrude")
col.itemO("armature.extrude_move")
col = layout.column(align=True)
col.itemL(text="Grease Pencil:")