Skip to content

Commit bc48fbc

Browse files
committed
Fix BSDF::IsVolume ('underwater paintings' bug)
1 parent 7a9576e commit bc48fbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/slg/bsdf/bsdf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ class BSDF {
117117
bool IsShadowCatcherOnlyInfiniteLights() const { return material->IsShadowCatcherOnlyInfiniteLights(); }
118118
bool IsCameraInvisible() const;
119119
bool IsVolume() const {
120-
auto ptr = dynamic_observer_cast<VolumeConstPtr>(material);
120+
auto ptr = dynamic_observer_cast<const Volume>(material);
121121
return bool(ptr);
122122
}
123123
bool IsPhotonGIEnabled() const { return material->IsPhotonGIEnabled(); }

0 commit comments

Comments
 (0)