ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/rtrace.c
(Generate patch)

Comparing ray/src/rt/rtrace.c (file contents):
Revision 2.82 by greg, Thu Jul 25 16:50:54 2019 UTC vs.
Revision 2.83 by greg, Thu Jul 25 16:59:19 2019 UTC

# Line 665 | Line 665 | oputN(                         /* print unperturbed normal */
665   )
666   {
667          if (r->rot < FHUGE) {
668 <                rayreorient(r);
669 <                (*putreal)(r->ron, 3);
668 >                if (r->rflips & 1) {    /* undo any flippin' flips */
669 >                        FVECT   unrm;
670 >                        unrm[0] = -r->ron[0];
671 >                        unrm[1] = -r->ron[1];
672 >                        unrm[2] = -r->ron[2];
673 >                        (*putreal)(unrm, 3);
674 >                } else
675 >                        (*putreal)(r->ron, 3);
676          } else
677                  (*putreal)(vdummy, 3);
678   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines