Fix for [#18372] object-particle in other layer not editable correctly.
authorJanne Karhu <jhkarh@gmail.com>
Fri, 3 Apr 2009 18:13:51 +0000 (18:13 +0000)
committerJanne Karhu <jhkarh@gmail.com>
Fri, 3 Apr 2009 18:13:51 +0000 (18:13 +0000)
source/blender/blenkernel/intern/anim.c

index 79c4d15b88e79f0ece6c35336b55af8171db6d78..50be417c8efc5f362680de3e6e6f49c657984c95 100644 (file)
@@ -908,7 +908,7 @@ static void new_particle_duplilist(ListBase *lb, ID *id, Object *par, float par_
                                else
                                        Mat4CpyMat4(mat, tmat);
 
-                               dob= new_dupli_object(lb, ob, mat, par->lay, counter, OB_DUPLIPARTS, animated);
+                               dob= new_dupli_object(lb, ob, mat, ob->lay, counter, OB_DUPLIPARTS, animated);
                                Mat4CpyMat4(dob->omat, oldobmat);
                                if(G.rendering)
                                        psys_get_dupli_texture(par, part, psmd, pa, cpa, dob->uv, dob->orco);