Bugfix: dupliparticles didn't respect the enabled button for the
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 25 Feb 2008 17:20:35 +0000 (17:20 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 25 Feb 2008 17:20:35 +0000 (17:20 +0000)
particle system, could crash.

source/blender/blenkernel/intern/anim.c

index ecf5dde571193e5f0fb462e95817dbcf9acd78f0..a2c4470b3583e145c1902d93414344339545e378 100644 (file)
@@ -749,7 +749,11 @@ static void new_particle_duplilist(ListBase *lb, ID *id, Object *par, float par_
        part=psys->part;
        psmd= psys_get_modifier(par, psys);
 
-       if(part==0) return;
+       if(part==0)
+               return;
+
+       if(!psys_check_enabled(par, psys))
+               return;
 
        ctime = bsystem_time(par, (float)G.scene->r.cfra, 0.0);