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

Comparing ray/src/common/mesh.c (file contents):
Revision 2.32 by greg, Sat Dec 28 18:05:14 2019 UTC vs.
Revision 2.33 by greg, Sat Apr 4 04:34:08 2020 UTC

# Line 578 | Line 578 | checkmesh(MESH *mp)                    /* validate mesh data */
578                          return("unbounded scene in mesh");
579                  if (mp->mat0 < 0 || mp->mat0+mp->nmats > nobjects)
580                          return("bad mesh modifier range");
581 +                if (mp->nmats > 0)      /* allocate during preload_objs()! */
582 +                        getmeshpseudo(mp, mp->mat0);
583                  for (i = mp->mat0+mp->nmats; i-- > mp->mat0; ) {
584                          int     otyp = objptr(i)->otype;
585                          if (!ismodifier(otyp)) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines