Skip to content

Commit

Permalink
fix issue #1168 by adding eval_null_transmission to trampoline class
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Schenk authored and njroussel committed May 14, 2024
1 parent fda612b commit c9e881b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/render/python/bsdf_v.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ MI_VARIANT class PyBSDF : public BSDF<Float, Spectrum> {
PYBIND11_OVERRIDE(Spectrum, BSDF, eval_diffuse_reflectance, si, active);
}

Spectrum eval_null_transmission(const SurfaceInteraction3f &si,
Mask active) const override {
PYBIND11_OVERRIDE(Spectrum, BSDF, eval_null_transmission, si, active);
}

Mask has_attribute(const std::string &name, Mask active) const override {
PYBIND11_OVERRIDE(Mask, BSDF, has_attribute, name, active);
}
Expand Down

0 comments on commit c9e881b

Please sign in to comment.