From 268d89c426e86d249bf6dbe089f6578884c33cd9 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 7 Oct 2016 14:45:33 +0100 Subject: [PATCH] Fixed VisualStudio warning Added local implementation of asEventHandler() --- include/osgVolume/Property | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/osgVolume/Property b/include/osgVolume/Property index bec70bd4a..be8abeea0 100644 --- a/include/osgVolume/Property +++ b/include/osgVolume/Property @@ -493,6 +493,9 @@ class OSGVOLUME_EXPORT PropertyAdjustmentCallback : public osgGA::GUIEventHandle virtual DrawableEventCallback* asDrawableEventCallback() { return osg::DrawableEventCallback::asDrawableEventCallback(); } virtual const DrawableEventCallback* asDrawableEventCallback() const { return osg::DrawableEventCallback::asDrawableEventCallback(); } + virtual osgGA::EventHandler* asEventHandler() { return osgGA::EventHandler::asEventHandler(); } + virtual const osgGA::EventHandler* asEventHandler() const { return osgGA::EventHandler::asEventHandler(); } + virtual bool run(osg::Object* object, osg::Object* data) { return osgGA::GUIEventHandler::run(object, data); } void setKeyEventCycleForward(int key) { _cyleForwardKey = key; }