Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2006-01-02 13:40:13 +0300
committerCampbell Barton <ideasman42@gmail.com>2006-01-02 13:40:13 +0300
commit8b0c3de7d9791646c09a002b14afc21d6b3da5ae (patch)
tree74283cda538fcf164099cbf5824ab2e4094fafd0 /source/blender/src/editmesh.c
parent362c8baac402a069367901f53cb2c8d4e2f75c4b (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/editmesh.c')
-rw-r--r--source/blender/src/editmesh.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/source/blender/src/editmesh.c b/source/blender/src/editmesh.c
index 669c182ef48..b62353438ad 100644
--- a/source/blender/src/editmesh.c
+++ b/source/blender/src/editmesh.c
@@ -1324,9 +1324,7 @@ void separate_mesh(void)
oldob= G.obedit;
oldbase= BASACT;
- G.qual |= LR_ALTKEY; /* patch to make sure we get a linked duplicate */
- adduplicate(1);
- G.qual &= ~LR_ALTKEY;
+ adduplicate(1, 0); /* notrans and a linked duplicate*/
G.obedit= BASACT->object; /* basact was set in adduplicate() */
@@ -1491,9 +1489,7 @@ void separate_mesh_loose(void)
oldob= G.obedit;
oldbase= BASACT;
- G.qual |= LR_ALTKEY; /* patch to make sure we get a linked duplicate */
- adduplicate(1);
- G.qual &= ~LR_ALTKEY;
+ adduplicate(1, 0); /* notrans and 0 for linked duplicate */
G.obedit= BASACT->object; /* basact was set in adduplicate() */