diff --git a/components/nifosg/nifloader.cpp b/components/nifosg/nifloader.cpp index 0ed485862..fd5190861 100644 --- a/components/nifosg/nifloader.cpp +++ b/components/nifosg/nifloader.cpp @@ -325,6 +325,7 @@ namespace NifOsg osg::ref_ptr handleLodNode(const Nif::NiLODNode* niLodNode) { osg::ref_ptr lod (new osg::LOD); + lod->setName(niLodNode->name); lod->setCenterMode(osg::LOD::USER_DEFINED_CENTER); lod->setCenter(niLodNode->lodCenter); for (unsigned int i=0; ilodLevels.size(); ++i) @@ -339,6 +340,7 @@ namespace NifOsg osg::ref_ptr handleSwitchNode(const Nif::NiSwitchNode* niSwitchNode) { osg::ref_ptr switchNode (new osg::Switch); + switchNode->setName(niSwitchNode->name); switchNode->setNewChildDefaultValue(false); return switchNode; }