From 68b72fbe60ee76c4cf0d2a8c224f5d8d45088abe Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Tue, 30 Nov 2010 18:56:48 +0100 Subject: [PATCH] various bugfixes --- src/librender/scene.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/librender/scene.cpp b/src/librender/scene.cpp index 5a75d8e8..e0b0b9af 100644 --- a/src/librender/scene.cpp +++ b/src/librender/scene.cpp @@ -287,8 +287,11 @@ void Scene::initialize() { if (m_luminaires.size() == 0) { Log(EWarn, "No luminaires found -- adding a constant environment source"); Properties constantProps("constant"); - constantProps.setSpectrum("intensity", Spectrum(0.8f)); - addChild("", PluginManager::getInstance()->createObject(Luminaire::m_theClass, constantProps)); + constantProps.setSpectrum("intensity", Spectrum(0.9f)); + ref luminaire = static_cast( + PluginManager::getInstance()->createObject(Luminaire::m_theClass, constantProps)); + addChild("", luminaire); + luminaire->configure(); } /* Calculate a discrete PDF to importance sample luminaires */