Revision: 49199
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=49199
Author: lukastoenne
Date: 2012-07-25 11:26:10 +0000 (Wed, 25 Jul 2012)
Log Message:
-----------
Fix #31339, Modifying mesh destroys particle system.
The particle system modifier has to ensure tesselation before testing for
topology changes. It compares the number of vertices, edges and tesselation
faces to the previously stored values.
Note that this test only detects a subset of actual topology changes (where the
number of elements differs), but this is a known limitation we have to live
with for now.
Modified Paths:
--------------
trunk/blender/source/blender/modifiers/intern/MOD_particlesystem.c
Modified: trunk/blender/source/blender/modifiers/intern/MOD_particlesystem.c
===================================================================
--- trunk/blender/source/blender/modifiers/intern/MOD_particlesystem.c
2012-07-25 11:25:10 UTC (rev 49198)
+++ trunk/blender/source/blender/modifiers/intern/MOD_particlesystem.c
2012-07-25 11:26:10 UTC (rev 49199)
@@ -176,6 +176,7 @@
psmd->dm->needsFree = 0;
/* report change in mesh structure */
+ DM_ensure_tessface(psmd->dm);
if (psmd->dm->getNumVerts(psmd->dm) != psmd->totdmvert ||
psmd->dm->getNumEdges(psmd->dm) != psmd->totdmedge ||
psmd->dm->getNumTessFaces(psmd->dm) != psmd->totdmface)
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs