rendered paste body /* report change in mesh structure */
if(psmd->dm->getNumVerts(psmd->dm)!=totvert ||
psmd->dm->getNumEdges(psmd->dm)!=totedge ||
psmd->dm->getNumFaces(psmd->dm)!=totface){
/* in file read dm hasn't really changed but just wasn't saved in file */
if(psmd->flag & eParticleSystemFlag_Loaded)
psmd->flag &= ~eParticleSystemFlag_Loaded;
else{
/* TODO PARTICLE - Added this so changing subsurf under hair updates it
should it be done elsewhere? - Campbell */
psys->recalc |= PSYS_RECALC_HAIR;
psys->recalc |= PSYS_DISTR;
psmd->flag |= eParticleSystemFlag_DM_changed;
}
}