From 812530aca81385af5a34fab851b4031521a1abe0 Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Sun, 26 Jul 2009 11:01:56 +0000 Subject: 2.5 - More armature/bone operator tweaks * Restored quick operators for moving bones between layers and switching visible armature layers. The popup used here (based on the layers template) is not optimal yet - you can click on multiple layer buttons to enable/disable them, but you need to move your mouse outside the area for it to confirm. * Separate armatures works again. I've tweaked the arguments to ED_object_duplicate() to make this work (besides, the other users of this wouldn't have been affected). * Added some missing special (transform) operators to the menus + keymaps --- source/blender/editors/object/object_edit.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'source/blender/editors/object/object_edit.c') diff --git a/source/blender/editors/object/object_edit.c b/source/blender/editors/object/object_edit.c index 1752f48990d..1ee3f1b2f53 100644 --- a/source/blender/editors/object/object_edit.c +++ b/source/blender/editors/object/object_edit.c @@ -6301,12 +6301,11 @@ static Base *object_add_duplicate_internal(Scene *scene, Base *base, int dupflag return basen; } -/* single object duplicate, if dupflag==0, fully linked, else it uses U.dupflag */ +/* single object duplicate, if dupflag==0, fully linked, else it uses the flags given */ /* leaves selection of base/object unaltered */ -Base *ED_object_add_duplicate(Scene *scene, Base *base, int usedupflag) +Base *ED_object_add_duplicate(Scene *scene, Base *base, int dupflag) { Base *basen; - int dupflag= usedupflag?U.dupflag:0; clear_id_newpoins(); clear_sca_new_poins(); /* sensor/contr/act */ -- cgit v1.2.3