--- ray/src/rt/m_alias.c 2003/03/11 19:29:05 2.1 +++ ray/src/rt/m_alias.c 2003/09/09 03:28:43 2.3 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: m_alias.c,v 2.1 2003/03/11 19:29:05 greg Exp $"; +static const char RCSid[] = "$Id: m_alias.c,v 2.3 2003/09/09 03:28:43 greg Exp $"; #endif /* * Handler for modifier alias @@ -37,9 +37,10 @@ RAY *r; aobj = lastmod(objndx(m), m->oargs.sarg[0]); if (aobj < 0) objerror(m, USER, "bad reference"); - copystruct(&arec, objptr(aobj)); + arec = *objptr(aobj); /* irradiance hack */ if (do_irrad && !(r->crtype & ~(PRIMARY|TRANS)) && + m->otype != MAT_CLIP && (ofun[arec.otype].flags & (T_M|T_X))) { if (irr_ignore(arec.otype)) { raytrans(r);