| # | Line 804 | Line 804 | SDsampTreCDist(FVECT ioVec, double randX, const SDCDst | |
|---|---|---|
| 804 | /* emit from back? */ | |
| 805 | if ((cd->sidef == SD_BREFL) | (cd->sidef == SD_FXMIT)) | |
| 806 | gpos[2] = -gpos[2]; | |
| 807 | < | if (cd->isodist) { /* rotate isotropic result */ |
| 807 | > | if (cd->isodist) { /* rotate isotropic sample */ |
| 808 | rotangle = atan2(-ioVec[1],-ioVec[0]); | |
| 809 | < | VCOPY(ioVec, gpos); |
| 810 | < | spinvector(ioVec, ioVec, zvec, rotangle); |
| 809 | > | spinvector(ioVec, gpos, zvec, rotangle); |
| 810 | } else | |
| 811 | VCOPY(ioVec, gpos); | |
| 812 | return SDEnone; | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |