Fix an (unlikely) startup crash
Encountered this by accidentally clicking during startup
This commit is contained in:
parent
130f581b18
commit
33b7e3e32e
1 changed files with 5 additions and 1 deletions
|
@ -66,6 +66,10 @@ public:
|
||||||
const osgGA::GUIEventAdapter&,
|
const osgGA::GUIEventAdapter&,
|
||||||
const Info& info )
|
const Info& info )
|
||||||
{
|
{
|
||||||
|
if (!panel->getPanel()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
button = b;
|
button = b;
|
||||||
// convert to panel coordinates
|
// convert to panel coordinates
|
||||||
osg::Matrixd m = osg::Matrixd::inverse(panel->transformMatrix());
|
osg::Matrixd m = osg::Matrixd::inverse(panel->transformMatrix());
|
||||||
|
|
Loading…
Add table
Reference in a new issue