# | Line 44 | Line 44 | m_mirror( /* shade mirrored ray */ | |
---|---|---|
44 | objerror(m, USER, "bad number of arguments"); | |
45 | /* check for substitute material */ | |
46 | /* but avoid double-counting */ | |
47 | < | if (m->oargs.nsargs > 0 && !(r->crtype & (AMBIENT|SPECULAR)) && |
48 | < | (r->rsrc < 0 || source[r->rsrc].so != r->ro)) { |
47 | > | if ( m->oargs.nsargs > 0 && |
48 | > | (r->rsrc < 0 || source[r->rsrc].so != r->ro) && |
49 | > | !(r->crtype & (AMBIENT|SPECULAR) && r->rod > 0.) ) { |
50 | if (!strcmp(m->oargs.sarg[0], VOIDID)) { | |
51 | raytrans(r); | |
52 | return(1); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |