Changed 3D View menu Duplicate Linked to use the same

duplicate linked + move macro as in the default key map (alt d).
This commit is contained in:
Matt Ebb 2010-01-14 04:36:27 +00:00
parent 4880b27891
commit 874ef4c747
2 changed files with 2 additions and 2 deletions

@ -639,7 +639,7 @@ class VIEW3D_MT_object(bpy.types.Menu):
layout.separator()
layout.operator("object.duplicate_move")
layout.operator("object.duplicate", text="Duplicate Linked").linked = True
layout.operator("object.duplicate_move_linked")
layout.operator("object.delete", text="Delete...")
layout.operator("object.proxy_make", text="Make Proxy...")
layout.menu("VIEW3D_MT_make_links", text="Make Links...")

@ -214,7 +214,7 @@ void ED_operatormacros_object(void)
}
/* grr, should be able to pass options on... */
ot= WM_operatortype_append_macro("OBJECT_OT_duplicate_move_linked", "Duplicate", OPTYPE_UNDO|OPTYPE_REGISTER);
ot= WM_operatortype_append_macro("OBJECT_OT_duplicate_move_linked", "Duplicate Linked", OPTYPE_UNDO|OPTYPE_REGISTER);
if(ot) {
otmacro= WM_operatortype_macro_define(ot, "OBJECT_OT_duplicate");
RNA_boolean_set(otmacro->ptr, "linked", 1);