1
0
Fork 0
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:
Cédric Mocquillon 2025-12-19 19:12:47 +01:00
parent 87da40e6d2
commit b14057506a

View file

@ -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;
}