virtual bool buttonPressed( int b,
const osgGA::GUIEventAdapter&,
const Info& info )
- {
+ {
+ if (!panel->getPanel()) {
+ return false;
+ }
+
button = b;
// convert to panel coordinates
osg::Matrixd m = osg::Matrixd::inverse(panel->transformMatrix());
}
osg::BoundingBox
-FGPanelNode::computeBound() const
+#if OSG_VERSION_LESS_THAN(3,3,2)
+FGPanelNode::computeBound()
+#else
+FGPanelNode::computeBoundingBox()
+#endif
+const
{
osg::Vec3 coords[3];