| # | Line 267 | Line 267 | register RAY *r; | |
|---|---|---|
| 267 | for (i = 0; i < 3; i++) /* perturb direction */ | |
| 268 | sr.rdir[i] = r->rdir[i] - | |
| 269 | .75*r->pert[i]; | |
| 270 | < | normalize(sr.rdir); |
| 270 | > | if (normalize(sr.rdir) == 0.0) { |
| 271 | > | objerror(m, WARNING, "illegal perturbation"); |
| 272 | > | VCOPY(sr.rdir, r->rdir); |
| 273 | > | } |
| 274 | } else { | |
| 275 | VCOPY(sr.rdir, r->rdir); | |
| 276 | transtest = 2; | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |