Fix for bug #18924: OpenGL performance issue with particle modifiers,
[blender.git] / source / blender / blenkernel / intern / particle_system.c
index 31e246f66b9a7ea00837a026f28ede25d7ef55da..6ac579346708536c9ff6bf292d4b774926462a65 100644 (file)
@@ -1762,7 +1762,10 @@ void reset_particle(ParticleData *pa, ParticleSystem *psys, ParticleSystemModifi
                        where_is_object_time(ob,pa->time);
 
                /* get birth location from object               */
-               psys_particle_on_emitter(psmd,part->from,pa->num, pa->num_dmcache, pa->fuv,pa->foffset,loc,nor,utan,vtan,0,0);
+               if(part->tanfac!=0.0)
+                       psys_particle_on_emitter(psmd,part->from,pa->num, pa->num_dmcache, pa->fuv,pa->foffset,loc,nor,utan,vtan,0,0);
+               else
+                       psys_particle_on_emitter(psmd,part->from,pa->num, pa->num_dmcache, pa->fuv,pa->foffset,loc,nor,0,0,0,0);
                
                /* save local coordinates for later             */
                VECCOPY(tloc,loc);