All pastes #758484 Raw Edit

Stuff

public text v1 · immutable
·published 2007-11-02 09:24 UTC
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;
		}
	}