diff --git a/.hgignore b/.hgignore index 5b59dd80..81c8579d 100644 --- a/.hgignore +++ b/.hgignore @@ -38,3 +38,6 @@ ^plugins/.*\.lib$ ^plugins/.*\.dll$ tools/windows/mitsuba_res.res +^meshes/.*$ +^textures/.*$ +^mitsuba.*.log$ diff --git a/src/librender/scene.cpp b/src/librender/scene.cpp index 54cdbc38..91493397 100644 --- a/src/librender/scene.cpp +++ b/src/librender/scene.cpp @@ -202,11 +202,6 @@ void Scene::configure() { m_camera->configure(); m_sampler = m_camera->getSamplerX(); } - - if (m_luminaires.size() == 0) { - Log(EWarn, "No luminaires found -- adding a constant environment source"); - addChild("", PluginManager::getInstance()->createObject(Luminaire::m_theClass, Properties("constant"))); - } if (m_media.size() > 1) Log(EError, "Scenes are currently restricted to at most one participating medium."); @@ -245,8 +240,10 @@ void Scene::initialize() { } if (!m_luminairePDF.isReady()) { - if (m_luminaires.size() == 0) - Log(EError, "The scene contains no light sources! Aborting.."); + if (m_luminaires.size() == 0) { + Log(EWarn, "No luminaires found -- adding a constant environment source"); + addChild("", PluginManager::getInstance()->createObject(Luminaire::m_theClass, Properties("constant"))); + } /* Calculate a discrete PDF to importance sample luminaires */ for (std::vector::iterator it = m_luminaires.begin();