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:
2006-01-02 10:40:13 +00:00
parent 362c8baac4
commit 8b0c3de7d9
9 changed files with 75 additions and 46 deletions

View File

@@ -1216,7 +1216,7 @@ static void winqreadview3dspace(ScrArea *sa, void *spacedata, BWinEvent *evt)
if(ob && (ob->flag & OB_POSEMODE))
error ("Duplicate not possible in posemode.");
else if((G.obedit==NULL))
adduplicate(0);
adduplicate(0, 0);
}
else if(G.qual==LR_CTRLKEY) {
imagestodisplist();