From "Jannik Heller", I just updated to the latest commit and noticed that drawable cull callbacks were no longer working. As it turns out there was a missing implementation of the asDrawableCullCallback() and asDrawableEventCallback(), after implementing these methods everything is working as expected.

This commit is contained in:
Robert Osfield 2016-02-04 20:15:14 +00:00
parent aa17f5441a
commit 8cefa05e3a

View File

@ -312,6 +312,9 @@ public:
META_Object(osg,DrawableEventCallback);
virtual DrawableEventCallback* asDrawableEventCallback() { return this; }
virtual const DrawableEventCallback* asDrawableEventCallback() const { return this; }
/** override Callback::run() entry point to adapt to StateAttributeCallback::run(..) method.*/
virtual bool run(osg::Object* object, osg::Object* data);
@ -328,6 +331,9 @@ public:
META_Object(osg,DrawableCullCallback);
virtual DrawableCullCallback* asDrawableCullCallback() { return this; }
virtual const DrawableCullCallback* asDrawableCullCallback() const { return this; }
// just use the standard run implementation to passes run onto any nested callbacks.
using Callback::run;