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
|
@ -65,7 +65,11 @@ public:
|
|||
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());
|
||||
|
|
Loading…
Add table
Reference in a new issue