Fix [#29737] Can't edit particle hair if particle count is 0.

* Hair wasn't flagged as "done" if particle count was 0 before setting particles as hair, so particle edit mode didn't work.
This commit is contained in:
Janne Karhu
2012-02-12 00:43:57 +00:00
parent 670bde28dd
commit 5a2454c3f8

View File

@@ -4428,6 +4428,7 @@ void particle_system_update(Scene *scene, Object *ob, ParticleSystem *psys)
if(psys->totpart == 0 && part->totpart == 0) {
psys_free_path_cache(psys, NULL);
free_hair(ob, psys, 0);
psys->flag |= PSYS_HAIR_DONE;
}
/* (re-)create hair */
else if(hair_needs_recalc(psys)) {