From 1bb491348b039eff2cc4e56267efcb43d24fccae Mon Sep 17 00:00:00 2001 From: Lukas Toenne Date: Wed, 25 Jul 2012 11:26:10 +0000 Subject: [PATCH] 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. --- source/blender/modifiers/intern/MOD_particlesystem.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source/blender/modifiers/intern/MOD_particlesystem.c b/source/blender/modifiers/intern/MOD_particlesystem.c index 0cf36677807..ecdc5b53460 100644 --- a/source/blender/modifiers/intern/MOD_particlesystem.c +++ b/source/blender/modifiers/intern/MOD_particlesystem.c @@ -176,6 +176,7 @@ static void deformVerts(ModifierData *md, Object *ob, 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)