From c9e881bae192d485da6c6baca7c49cde05046f42 Mon Sep 17 00:00:00 2001 From: Daniel Schenk Date: Tue, 14 May 2024 15:26:02 +0200 Subject: [PATCH] fix issue #1168 by adding eval_null_transmission to trampoline class --- src/render/python/bsdf_v.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/render/python/bsdf_v.cpp b/src/render/python/bsdf_v.cpp index 917495f80..f09244fe2 100644 --- a/src/render/python/bsdf_v.cpp +++ b/src/render/python/bsdf_v.cpp @@ -65,6 +65,11 @@ MI_VARIANT class PyBSDF : public BSDF { 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); }