Revision: 24025 http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=24025 Author: campbellbarton Date: 2009-10-20 23:12:09 +0200 (Tue, 20 Oct 2009)
Log Message: ----------- [#19445] New Object is not Grabbed after using Duplicate Linked Modified Paths: -------------- trunk/blender/source/blender/editors/object/object_ops.c Modified: trunk/blender/source/blender/editors/object/object_ops.c =================================================================== --- trunk/blender/source/blender/editors/object/object_ops.c 2009-10-20 21:05:22 UTC (rev 24024) +++ trunk/blender/source/blender/editors/object/object_ops.c 2009-10-20 21:12:09 UTC (rev 24025) @@ -189,12 +189,21 @@ void ED_operatormacros_object(void) { wmOperatorType *ot; + wmOperatorTypeMacro *otmacro; ot= WM_operatortype_append_macro("OBJECT_OT_duplicate_move", "Duplicate", OPTYPE_UNDO|OPTYPE_REGISTER); if(ot) { WM_operatortype_macro_define(ot, "OBJECT_OT_duplicate"); WM_operatortype_macro_define(ot, "TFM_OT_translate"); } + + /* grr, should be able to pass options on... */ + ot= WM_operatortype_append_macro("OBJECT_OT_duplicate_move_linked", "Duplicate", OPTYPE_UNDO|OPTYPE_REGISTER); + if(ot) { + otmacro= WM_operatortype_macro_define(ot, "OBJECT_OT_duplicate"); + RNA_boolean_set(otmacro->ptr, "linked", 1); + WM_operatortype_macro_define(ot, "TFM_OT_translate"); + } } static int object_mode_poll(bContext *C) @@ -266,7 +275,8 @@ RNA_string_set(kmi->ptr, "name", "VIEW3D_MT_make_single_user"); WM_keymap_add_item(keymap, "OBJECT_OT_duplicate_move", DKEY, KM_PRESS, KM_SHIFT, 0); - RNA_boolean_set(WM_keymap_add_item(keymap, "OBJECT_OT_duplicate", DKEY, KM_PRESS, KM_ALT, 0)->ptr, "linked", 1); + WM_keymap_add_item(keymap, "OBJECT_OT_duplicate_move_linked", DKEY, KM_PRESS, KM_ALT, 0); + WM_keymap_add_item(keymap, "OBJECT_OT_join", JKEY, KM_PRESS, KM_CTRL, 0); WM_keymap_add_item(keymap, "OBJECT_OT_convert", CKEY, KM_PRESS, KM_ALT, 0); WM_keymap_add_item(keymap, "OBJECT_OT_proxy_make", PKEY, KM_PRESS, KM_CTRL|KM_ALT, 0); _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org http://lists.blender.org/mailman/listinfo/bf-blender-cvs