diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-01-26 14:23:47 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-01-26 14:23:47 +0300 |
commit | 7c776bc124dc218e3e663854fb4fcf1e70a56250 (patch) | |
tree | 37fa1d72096ee0d3376ced7995669b057b4e13bd /source | |
parent | fb8d6b9f7a469e82762efd408746af3a20453356 (diff) |
Fix for make duplicates real, put new objects on same layers as
duplicator instead of original object.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/object/object_add.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/object/object_add.c b/source/blender/editors/object/object_add.c index fede69c10cb..ee88a192e0a 100644 --- a/source/blender/editors/object/object_add.c +++ b/source/blender/editors/object/object_add.c @@ -1107,12 +1107,14 @@ static void make_object_duplilist_real(bContext *C, Scene *scene, Base *base) basen= MEM_dupallocN(base); basen->flag &= ~OB_FROMDUPLI; + basen->lay= base->lay; BLI_addhead(&scene->base, basen); /* addhead: othwise eternal loop */ basen->object= ob; ob->ipo= NULL; /* make sure apply works */ ob->parent= ob->track= NULL; ob->disp.first= ob->disp.last= NULL; ob->transflag &= ~OB_DUPLI; + ob->lay= base->lay; copy_m4_m4(ob->obmat, dob->mat); ED_object_apply_obmat(ob); |