Using a Curve object as a forcefield (not as Guide) crashed Blender.
Needed an additional check in code.
This commit is contained in:
Ton Roosendaal
2005-11-27 18:17:02 +00:00
parent cb82936a98
commit dff7bebab8

View File

@@ -391,9 +391,11 @@ static void precalc_effectors(Object *ob, PartEff *paf, Particle *pa, ListBase *
pEffectorCache *ec;
for(ec= lb->first; ec; ec= ec->next) {
PartDeflect *pd= ec->ob->pd;
ec->oldspeed[0]= ec->oldspeed[1]= ec->oldspeed[2]= 0.0f;
if(ec->ob->type==OB_CURVE) {
if(pd->forcefield==PFIELD_GUIDE && ec->ob->type==OB_CURVE) {
float vec[4], dir[3];
/* scale corrects speed vector to curve size */