[Bf-blender-cvs] [d3870471edd] master: Fix fur on Spring characters

Sergey Sharybin noreply at git.blender.org
Tue Feb 12 10:58:43 CET 2019


Commit: d3870471edd775777f774dba4e66a3c87b632509
Author: Sergey Sharybin
Date:   Tue Feb 12 10:55:15 2019 +0100
Branches: master
https://developer.blender.org/rBd3870471edd775777f774dba4e66a3c87b632509

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!).

===================================================================

M	source/blender/modifiers/intern/MOD_particlesystem.c

===================================================================

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 */



More information about the Bf-blender-cvs mailing list