mirror of
https://github.com/OpenMW/openmw.git
synced 2026-01-04 13:43:07 +00:00
Do not forget the settings of the original lod node
This commit is contained in:
parent
87da40e6d2
commit
b14057506a
1 changed files with 3 additions and 0 deletions
|
|
@ -230,6 +230,9 @@ namespace MWRender
|
|||
osg::LOD* n = new osg::LOD;
|
||||
for (const auto& [child, range] : children)
|
||||
n->addChild(child, range.first, range.second);
|
||||
n->setCenterMode(lod->getCenterMode());
|
||||
n->setCenter(lod->getCenter());
|
||||
n->setRadius(lod->getRadius());
|
||||
n->setDataVariance(osg::Object::STATIC);
|
||||
return n;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue