# | Line 978 | Line 978 | static int aliasPhotonScatter (OBJREC *mat, RAY *rayIn | |
---|---|---|
978 | ||
979 | /* Straight replacement? */ | |
980 | if (!mat -> oargs.nsargs) { | |
981 | < | mat = objptr(mat -> omod); |
982 | < | photonScatter [mat -> otype] (mat, rayIn); |
981 | > | /* Skip void modifier! */ |
982 | > | if (mat -> omod != OVOID) { |
983 | > | mat = objptr(mat -> omod); |
984 | > | photonScatter [mat -> otype] (mat, rayIn); |
985 | > | } |
986 | ||
987 | return 0; | |
988 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |