1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-07 12:54:00 +00:00

Fix frontface bug

This commit is contained in:
scrawl 2015-04-15 22:43:53 +02:00
parent c334a76a6f
commit 57fd18b161

View File

@ -172,7 +172,7 @@ namespace SceneUtil
// However MW isn't doing this either, so don't. Assuming all meshes are using backface culling is more efficient.
osg::FrontFace* frontFace = new osg::FrontFace;
frontFace->setMode(osg::FrontFace::CLOCKWISE);
toAttach->getOrCreateStateSet()->setAttributeAndModes(frontFace, osg::StateAttribute::ON);
trans->getOrCreateStateSet()->setAttributeAndModes(frontFace, osg::StateAttribute::ON);
find.mFoundNode->addChild(trans);
trans->addChild(toAttach);