diff options
author | Campbell Barton <ideasman42@gmail.com> | 2006-01-02 13:40:13 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2006-01-02 13:40:13 +0300 |
commit | 8b0c3de7d9791646c09a002b14afc21d6b3da5ae (patch) | |
tree | 74283cda538fcf164099cbf5824ab2e4094fafd0 /source/blender/src/edit.c | |
parent | 362c8baac402a069367901f53cb2c8d4e2f75c4b (diff) |
Changed adduplicate() to take the dupflags as an argument. so faking the Alt Key isnt needed anymore in Blender or python.
Changed Pythons Object.Duplicate() to take keyword parms to enable duplication of spesific data.
Eg- Object.Duplicate(mesh=1) # to duplicate mesh data also.
Diffstat (limited to 'source/blender/src/edit.c')
-rw-r--r-- | source/blender/src/edit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/src/edit.c b/source/blender/src/edit.c index ec8c8d75ad2..7e633bf6d35 100644 --- a/source/blender/src/edit.c +++ b/source/blender/src/edit.c @@ -62,7 +62,7 @@ #include "DNA_scene_types.h" #include "DNA_space_types.h" #include "DNA_view3d_types.h" - +#include "DNA_userdef_types.h" /* for U.dupflag */ #include "BLI_blenlib.h" #include "BLI_arithb.h" #include "BLI_editVert.h" @@ -1576,7 +1576,7 @@ void duplicate_context_selected(void) else if ELEM(G.obedit->type, OB_CURVE, OB_SURF) adduplicate_nurb(); } else { - adduplicate(0); + adduplicate(0, U.dupflag); } } |