Optimize method for limiting particle recalculation wrongly skipped
static particles too.
This commit is contained in:
Ton Roosendaal
2006-06-20 19:02:24 +00:00
parent 447593d7b9
commit 5a2512c1ba

View 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);
}
}