Commit d18ee9b2 authored by Mike Kremer's avatar Mike Kremer
Browse files

Fixed bug 358: CoordSys returns now to former state after snapshot (and hide...

Fixed bug 358: CoordSys returns now to former state after snapshot (and hide coordsys option enabled).

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@11570 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 8bfc4d49
......@@ -2237,12 +2237,14 @@ void glViewer::snapshot(QImage& _image, int _width, int _height, bool _alpha, bo
ACG::Vec4f backColorBak;
ACG::Vec4f newBack;
bool formerCoordsysState = true;
// Hide coordsys node if demanded
if(_hideCoordsys) {
// Find coordsys node
ACG::SceneGraph::BaseNode* node = 0;
node = sceneGraphRoot_->find("Core Coordsys Node");
if(node != 0) {
formerCoordsysState = node->visible();
node->hide();
} else {
emit statusMessage(QString(tr("Could not find coordsys node, thus it will appear in the snapshot anyway.")));
......@@ -2266,7 +2268,7 @@ void glViewer::snapshot(QImage& _image, int _width, int _height, bool _alpha, bo
// Find coordsys node
ACG::SceneGraph::BaseNode* node = 0;
node = sceneGraphRoot_->find("Core Coordsys Node");
if(node != 0) {
if(node != 0 && formerCoordsysState) {
node->show();
}
}
......
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