diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-02-01 17:38:22 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-02-01 17:40:19 +0300 |
commit | 6bdbbcd683aff6a034e6a1e86915a1aafa3d1051 (patch) | |
tree | 585998cc3bee3231c92c2ad2f17e569d6aa06e68 /source/blender | |
parent | 227ed1aa3516ae1504f49be90085b2fdc703f6a1 (diff) |
Workaround for missing hair after opening the file
Restore reset on file open, at least for now.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/modifiers/intern/MOD_particlesystem.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/modifiers/intern/MOD_particlesystem.c b/source/blender/modifiers/intern/MOD_particlesystem.c index ce5b3422f98..e654a93a217 100644 --- a/source/blender/modifiers/intern/MOD_particlesystem.c +++ b/source/blender/modifiers/intern/MOD_particlesystem.c @@ -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 */ |