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

Comparing ray/src/rt/p_data.c (file contents):
Revision 2.13 by greg, Wed Jan 17 17:35:35 2024 UTC vs.
Revision 2.14 by greg, Thu Feb 22 20:11:54 2024 UTC

# Line 141 | Line 141 | p_cdata(                       /* interpolate color data */
141          }
142          col[0] = datavalue(dp, pt);
143          for (i = 1; i < 3; i++) {
144 +                if (!strcmp(m->oargs.sarg[3+i], m->oargs.sarg[3])) {
145 +                        col[i] = col[0];        /* same data */
146 +                        continue;
147 +                }
148                  dp = getdata(m->oargs.sarg[3+i]);
149                  if (dp->nd != nv)
150                          objerror(m, USER, "dimension error");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines