forked from mirror/openmw-tes3mp
nifloader: ignore nodes named 'bounding box' (Fixes #3650)
This commit is contained in:
parent
9fa8e88366
commit
892d1b162d
1 changed files with 3 additions and 0 deletions
|
@ -552,6 +552,9 @@ namespace NifOsg
|
||||||
osg::ref_ptr<osg::Node> handleNode(const Nif::Node* nifNode, osg::Group* parentNode, Resource::ImageManager* imageManager,
|
osg::ref_ptr<osg::Node> handleNode(const Nif::Node* nifNode, osg::Group* parentNode, Resource::ImageManager* imageManager,
|
||||||
std::vector<int> boundTextures, int animflags, bool skipMeshes, TextKeyMap* textKeys, osg::Node* rootNode=NULL)
|
std::vector<int> boundTextures, int animflags, bool skipMeshes, TextKeyMap* textKeys, osg::Node* rootNode=NULL)
|
||||||
{
|
{
|
||||||
|
if (rootNode != NULL && Misc::StringUtils::ciEqual(nifNode->name, "Bounding Box"))
|
||||||
|
return NULL;
|
||||||
|
|
||||||
osg::ref_ptr<osg::Group> node = new osg::MatrixTransform(nifNode->trafo.toMatrix());
|
osg::ref_ptr<osg::Group> node = new osg::MatrixTransform(nifNode->trafo.toMatrix());
|
||||||
|
|
||||||
// Set a default DataVariance (used as hint by optimization routines).
|
// Set a default DataVariance (used as hint by optimization routines).
|
||||||
|
|
Loading…
Reference in a new issue