From Konstantin Matveyev, "Multiple light fix in FBX-importer"

This commit is contained in:
Robert Osfield
2013-10-18 07:55:26 +00:00
parent bddeecdbee
commit 5bfb2ef26d

View File

@@ -20,11 +20,11 @@ osgDB::ReaderWriter::ReadResult OsgFbxReader::readFbxLight(FbxNode* pNode, int&
}
osg::Light* osgLight = new osg::Light;
osg::LightSource* osgLightSource = new osg::LightSource;
osgLightSource->setLight(osgLight);
osgLight->setLightNum(nLightCount++);
osg::LightSource* osgLightSource = new osg::LightSource;
osgLightSource->setLight(osgLight);
FbxLight::EType fbxLightType = fbxLight->LightType.IsValid() ?
fbxLight->LightType.Get() : FbxLight::ePoint;