From 5bfb2ef26d588e6c746ccb16dccde5ec08298f29 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 18 Oct 2013 07:55:26 +0000 Subject: [PATCH] From Konstantin Matveyev, "Multiple light fix in FBX-importer" --- src/osgPlugins/fbx/fbxRLight.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/osgPlugins/fbx/fbxRLight.cpp b/src/osgPlugins/fbx/fbxRLight.cpp index ce01fd2e0..24272a6a0 100644 --- a/src/osgPlugins/fbx/fbxRLight.cpp +++ b/src/osgPlugins/fbx/fbxRLight.cpp @@ -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;