Commit 7ddc4c0f authored by Mike Kremer's avatar Mike Kremer
Browse files

Show coordsys context menu in background if coordsys is invisible.

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@6347 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 150d6125
......@@ -254,6 +254,18 @@ void CoreWidget::updatePopupMenuBackground(QMenu* _menu , const QPoint& /*_point
action->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"BackgroundColor.png") );
connect(action, SIGNAL(triggered()), this, SLOT(slotSetContextBackgroundColor()) );
/*
* Show coordsys context menu of coordsys is
* invisible...
*/
ACG::SceneGraph::BaseNode* root = PluginFunctions::getSceneGraphRootNode();
ACG::SceneGraph::BaseNode* coordSys = root->find("Core Coordsys Node");
if(!coordSys->visible()) {
updatePopupMenuCoordsysNode(_menu, 0);
}
// Tell Plugins to update their context Menu
emit updateContextMenuBackground();
......
......@@ -551,10 +551,12 @@ void CoreWidget::slotCoordSysVisibility(bool _visible){
return;
}
if (_visible)
if (_visible) {
coordSys->show();
else
}
else {
coordSys->hide();
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment