# | Line 318 | Line 318 | cm_bsdf(const struct BSDF_data *bsdf) | |
---|---|---|
318 | ||
319 | mp[0] = mp[1] = mp[2] = f * dom * -v[2]; | |
320 | } | |
321 | < | if (nbadohm | nneg) { |
321 | > | if (nneg || nbadohm) { |
322 | sprintf(errmsg, | |
323 | < | "BTDF has %d negatives and %d bad incoming solid angles"); |
323 | > | "BTDF has %d negatives and %d bad incoming solid angles", |
324 | > | nneg, nbadohm); |
325 | error(WARNING, errmsg); | |
326 | } | |
327 | return(cm); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |