From 3694c2f034038baa3e3f5fac8e9412c7baebd24b Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Fri, 6 Jun 2014 01:01:13 +0200 Subject: [PATCH] sensor.cpp: be less pesky in addChild() --- src/librender/sensor.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/librender/sensor.cpp b/src/librender/sensor.cpp index dccddc33..943d2282 100644 --- a/src/librender/sensor.cpp +++ b/src/librender/sensor.cpp @@ -145,10 +145,8 @@ Float Sensor::pdfTime(const Ray &ray, EMeasure measure) const { void Sensor::addChild(const std::string &name, ConfigurableObject *child) { if (child->getClass()->derivesFrom(MTS_CLASS(Sampler))) { - Assert(m_sampler == NULL); m_sampler = static_cast(child); } else if (child->getClass()->derivesFrom(MTS_CLASS(Film))) { - Assert(m_film == NULL); m_film = static_cast(child); } else { AbstractEmitter::addChild(name, child);