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.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user