diff --git a/src/librender/sensor.cpp b/src/librender/sensor.cpp index 7869e905..82483108 100644 --- a/src/librender/sensor.cpp +++ b/src/librender/sensor.cpp @@ -132,7 +132,7 @@ Spectrum Sensor::sampleRayDifferential(RayDifferential &ray, } Float Sensor::pdfTime(const Ray &ray, EMeasure measure) const { - if (ray.time < m_shutterOpen || ray.time > m_shutterOpenTime + m_shutterOpenTime) + if (ray.time < m_shutterOpen || ray.time > m_shutterOpen + m_shutterOpenTime) return 0.0f; if (m_shutterOpenTime == 0 && measure == EDiscrete)