Workaround for missing hair after opening the file

Restore reset on file open, at least for now.
This commit is contained in:
Sergey Sharybin 2019-02-01 15:38:22 +01:00
parent 227ed1aa35
commit 6bdbbcd683
1 changed files with 3 additions and 0 deletions

View File

@ -127,6 +127,9 @@ static void deformVerts(
else if (psmd->flag & eParticleSystemFlag_file_loaded) {
/* in file read mesh just wasn't saved in file so no need to reset everything */
psmd->flag &= ~eParticleSystemFlag_file_loaded;
/* TODO(sergey): With copy-on-write this is more like duplicating an
* object which does need to reset particles. */
psys->recalc |= ID_RECALC_PSYS_RESET;
}
else {
/* no dm before, so recalc particles fully */