bugfix #4384
authorTon Roosendaal <ton@blender.org>
Tue, 20 Jun 2006 19:02:24 +0000 (19:02 +0000)
committerTon Roosendaal <ton@blender.org>
Tue, 20 Jun 2006 19:02:24 +0000 (19:02 +0000)
Optimize method for limiting particle recalculation wrongly skipped
static particles too.

source/blender/blenkernel/intern/DerivedMesh.c

index e6cffdf251c916cd627b56ff19b783e37f751d04..bf3bfd44709210612e525d3bb287a007f0c62830 100644 (file)
@@ -1947,9 +1947,13 @@ void makeDispListMesh(Object *ob)
        if (ob==G.obedit) {
                editmesh_build_data();
        } else {
+               PartEff *paf= give_parteff(ob);
+               
                mesh_build_data(ob);
-               if((ob->recalc & OB_RECALC_TIME)==0)
-                       build_particle_system(ob);
+               
+               if(paf)
+                       if((paf->flag & PAF_STATIC) || (ob->recalc & OB_RECALC_TIME)==0)
+                               build_particle_system(ob);
        }
 }