mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-29 19:36:43 +00:00
Fill Switch and LOD nodes names
This commit is contained in:
parent
f405b1e247
commit
87598f9419
1 changed files with 2 additions and 0 deletions
|
@ -325,6 +325,7 @@ namespace NifOsg
|
||||||
osg::ref_ptr<osg::LOD> handleLodNode(const Nif::NiLODNode* niLodNode)
|
osg::ref_ptr<osg::LOD> handleLodNode(const Nif::NiLODNode* niLodNode)
|
||||||
{
|
{
|
||||||
osg::ref_ptr<osg::LOD> lod (new osg::LOD);
|
osg::ref_ptr<osg::LOD> lod (new osg::LOD);
|
||||||
|
lod->setName(niLodNode->name);
|
||||||
lod->setCenterMode(osg::LOD::USER_DEFINED_CENTER);
|
lod->setCenterMode(osg::LOD::USER_DEFINED_CENTER);
|
||||||
lod->setCenter(niLodNode->lodCenter);
|
lod->setCenter(niLodNode->lodCenter);
|
||||||
for (unsigned int i=0; i<niLodNode->lodLevels.size(); ++i)
|
for (unsigned int i=0; i<niLodNode->lodLevels.size(); ++i)
|
||||||
|
@ -339,6 +340,7 @@ namespace NifOsg
|
||||||
osg::ref_ptr<osg::Switch> handleSwitchNode(const Nif::NiSwitchNode* niSwitchNode)
|
osg::ref_ptr<osg::Switch> handleSwitchNode(const Nif::NiSwitchNode* niSwitchNode)
|
||||||
{
|
{
|
||||||
osg::ref_ptr<osg::Switch> switchNode (new osg::Switch);
|
osg::ref_ptr<osg::Switch> switchNode (new osg::Switch);
|
||||||
|
switchNode->setName(niSwitchNode->name);
|
||||||
switchNode->setNewChildDefaultValue(false);
|
switchNode->setNewChildDefaultValue(false);
|
||||||
return switchNode;
|
return switchNode;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue