Particles: bugfixes
[blender.git] / source / blender / editors / space_view3d / drawobject.c
index 7bc86f6bae71270fc906d471d66b870ad6078987..fa8eee630aa727c53f0e8c082e8c4107afd2e93d 100644 (file)
@@ -5920,8 +5920,9 @@ void draw_object(Scene *scene, ARegion *ar, View3D *v3d, Base *base, int flag)
 
                for(psys=ob->particlesystem.first; psys; psys=psys->next) {
                        /* run this so that possible child particles get cached */
 
                for(psys=ob->particlesystem.first; psys; psys=psys->next) {
                        /* run this so that possible child particles get cached */
-                       if(edit && edit->psys == psys)
-                               draw_update_ptcache_edit(scene, ob, edit);
+                       if(ob->mode & OB_MODE_PARTICLE_EDIT && ob==OBACT)
+                               if(edit && edit->psys == psys)
+                                       draw_update_ptcache_edit(scene, ob, edit);
 
                        draw_new_particle_system(scene, v3d, rv3d, base, psys, dt);
                }
 
                        draw_new_particle_system(scene, v3d, rv3d, base, psys, dt);
                }