- fix for particle related crash in editmode. particle system calculation

is pretty haphazard at the moment, needs to be reviewed before next
   release (as does duplis).
This commit is contained in:
2005-07-20 02:23:09 +00:00
parent 3e843f80d7
commit 87e76e8560

View File

@@ -1261,7 +1261,16 @@ void build_particle_system(Object *ob)
}
/* init */
/* this call returns NULL during editmode, just ignore it and
* particles should be recalc'd on exit.
*/
dm = mesh_get_derived_final(ob, &dmNeedsFree);
if (!dm) {
waitcursor(0);
return;
}
dlm = dm->convertToDispListMesh(dm);
totvert = dlm->totvert;