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

Make it work with appveyor's outdated OSG build

This commit is contained in:
scrawl 2016-02-21 01:41:50 +01:00
parent 900b522d13
commit cee608e31b

View File

@ -129,10 +129,13 @@ 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)
{
osg::Node* node = dynamic_cast<osg::Node*>(object);
if (node) if (node)
node->accept(nv); node->accept(nv);
} }
}
} }
} }