diff --git a/applications/present3D/present3D.cpp b/applications/present3D/present3D.cpp index 51575cdb7..1911d3ef6 100644 --- a/applications/present3D/present3D.cpp +++ b/applications/present3D/present3D.cpp @@ -136,6 +136,7 @@ public: virtual bool handle (const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &aa, osg::Object *, osg::NodeVisitor *) { + OSG_INFO<<"ForwardToDeviceEventHandler::setEvent("<sendEvent(ea); return false; } diff --git a/src/osgPlugins/p3d/ReaderWriterP3D.cpp b/src/osgPlugins/p3d/ReaderWriterP3D.cpp index 9141b34f3..386bd5ca7 100644 --- a/src/osgPlugins/p3d/ReaderWriterP3D.cpp +++ b/src/osgPlugins/p3d/ReaderWriterP3D.cpp @@ -1371,13 +1371,32 @@ bool ReaderWriterP3DXML::getKeyPositionInner(osgDB::XmlNode*cur, osgPresentation std::string key = cur->getTrimmedContents(); unsigned int keyValue = 0; + if (key.empty()) + { + OSG_NOTICE<<"Warning: empty is invalid, ignoring tag."<second; } + if (key.find("0x",0,2)!=std::string::npos) + { + std::istringstream iss(key); + iss>>std::hex>>keyValue; + OSG_INFO<<"ReaderWriterP3DXML::getKeyPositionInner() hex result = "<1 && (key[0]>='0' && key[0]<='9')) + { + std::istringstream iss(key); + iss>>keyValue; + OSG_INFO<<"ReaderWriterP3DXML::getKeyPositionInner() numeric result = "<