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

Comparing ray/src/common/cone.c (file contents):
Revision 2.10 by greg, Thu Apr 21 00:40:35 2016 UTC vs.
Revision 2.11 by greg, Fri Sep 16 15:09:21 2016 UTC

# Line 81 | Line 81 | getcone(                               /* get cone structure */
81                          if (sgn0+sgn1 == 0)
82                                  goto raderr;
83                          if ((sgn0 < 0) | (sgn1 < 0)) {
84 <                                objerror(o, o->otype==OBJ_RING?USER:WARNING,
85 <                                        "negative radii");
84 >                                if (o->otype == OBJ_RING)
85 >                                        goto raderr;
86 >                                objerror(o, WARNING, "negative radii");
87                                  o->otype = o->otype == OBJ_CONE ?
88                                                  OBJ_CUP : OBJ_CONE;
89                          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines