Fix for [#17677] Blender Crash when Baking Boids

- A check for getting the "better" dm was missing from the boids code. I plan on converting the boids code into using the collision modifier one of these days but hopefully this quick fix will do for now.
This commit is contained in:
Janne Karhu 2008-09-25 18:31:01 +00:00
parent 9c08e86b06
commit 9a7c53782b

@ -2861,7 +2861,7 @@ int psys_intersect_dm(Object *ob, DerivedMesh *dm, float *vert_cos, float *co1,
dm=mesh_get_derived_final(ob,0);
if(dm==0)
mesh_get_derived_deform(ob,0);
dm=mesh_get_derived_deform(ob,0);
psys_enable_all(ob);
@ -3319,7 +3319,9 @@ static int boid_see_mesh(ListBase *lb, Object *pob, ParticleSystem *psys, float
else{
psys_disable_all(ob);
dm=mesh_get_derived_deform(ob,0);
dm=mesh_get_derived_final(ob,0);
if(dm==0)
dm=mesh_get_derived_deform(ob,0);
psys_enable_all(ob);
}