From d3870471edd775777f774dba4e66a3c87b632509 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Tue, 12 Feb 2019 10:55:15 +0100 Subject: Fix fur on Spring characters There is an issue of hair being completely messed up when switching to a simulation view layer for Autumn. Restoring back the code which was re-setting particles on file load. This will re-set unbacked particles on file load but this appears to be happening in 2.7 as well. Can not reproduce bugs which were fixed in this area recently, so maybe it's finally tackled (fingers crossed!). --- source/blender/modifiers/intern/MOD_particlesystem.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source') diff --git a/source/blender/modifiers/intern/MOD_particlesystem.c b/source/blender/modifiers/intern/MOD_particlesystem.c index 70404a1cb63..4f9b6280026 100644 --- a/source/blender/modifiers/intern/MOD_particlesystem.c +++ b/source/blender/modifiers/intern/MOD_particlesystem.c @@ -130,6 +130,10 @@ static void deformVerts( if (psys->particles == NULL) { psys->recalc |= ID_RECALC_PSYS_RESET; } + /* TODO(sergey): This is not how particles were working prior to copy on + * write, but now evaluation is similar to case when one duplicates the + * object. In that case particles were doing reset here. */ + psys->recalc |= ID_RECALC_PSYS_RESET; } /* make new mesh */ -- cgit v1.2.3