Fixed crash in handling of an osg::Callback attached to a Drawable as update callback.
Added handling of osg::Callback when attavhed to a Drawable as a cull callback.
This commit is contained in:
@@ -992,6 +992,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;
|
||||
|
||||
Reference in New Issue
Block a user