forked from mirror/openmw-tes3mp
Make it work with appveyor's outdated OSG build
This commit is contained in:
parent
900b522d13
commit
cee608e31b
1 changed files with 6 additions and 3 deletions
|
@ -129,9 +129,12 @@ void ObjectCache::accept(osg::NodeVisitor &nv)
|
||||||
++itr)
|
++itr)
|
||||||
{
|
{
|
||||||
osg::Object* object = itr->second.first.get();
|
osg::Object* object = itr->second.first.get();
|
||||||
osg::Node* node = object->asNode();
|
if (object)
|
||||||
if (node)
|
{
|
||||||
node->accept(nv);
|
osg::Node* node = dynamic_cast<osg::Node*>(object);
|
||||||
|
if (node)
|
||||||
|
node->accept(nv);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue