Fixed crash in handling of osg::Callback attached as Drawable update callback.

Added handling of osg::Callback as a Drawable cull callback
This commit is contained in:
Robert Osfield
2016-11-23 19:18:14 +00:00
parent 8af48d369c
commit 46df1fd141
2 changed files with 5 additions and 2 deletions

View File

@@ -990,6 +990,10 @@ void CullVisitor::apply(osg::Drawable& drawable)
{
if( dcb->cull( this, &drawable, &_renderInfo ) == true ) return;
}
else
{
drawable.getCullCallback()->run(&drawable,this);
}
}
if (drawable.isCullingActive() && isCulled(bb)) return;