Permalink
Browse files

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

  • Loading branch information...
1 parent 93ae93f commit ef74ef0125e8ed6ef9a44386c8ae5a11efd131a2 @osg-training-guest osg-training-guest committed Oct 18, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/osgPlugins/fbx/fbxRLight.cpp
@@ -20,10 +20,10 @@ osgDB::ReaderWriter::ReadResult OsgFbxReader::readFbxLight(FbxNode* pNode, int&
}
osg::Light* osgLight = new osg::Light;
- osg::LightSource* osgLightSource = new osg::LightSource;
+ osgLight->setLightNum(nLightCount++);
+ osg::LightSource* osgLightSource = new osg::LightSource;
osgLightSource->setLight(osgLight);
- osgLight->setLightNum(nLightCount++);
FbxLight::EType fbxLightType = fbxLight->LightType.IsValid() ?
fbxLight->LightType.Get() : FbxLight::ePoint;

0 comments on commit ef74ef0

Please sign in to comment.