Commit 296be8bc authored by Mike Kremer's avatar Mike Kremer

Restructured code a bit.

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@9926 383ad7c9-94d9-4d36-a494-682f7c89f535
parent ebd8e454
......@@ -2101,22 +2101,22 @@ void glViewer::snapshot(QImage& _image, int _width, int _height, bool _alpha, bo
if(_alpha)
properties()->backgroundColor(backColorBak);
_image = fb.toImage().copy(0, 0, w, h);
if(_hideCoordsys) {
// Find coordsys node
ACG::SceneGraph::BaseNode* node = 0;
node = sceneGraphRoot_->find("Core Coordsys Node");
if(node != 0) {
node->show();
}
}
_image = fb.toImage().copy(0, 0, w, h);
}
if(_width != 0 || _height != 0) {
// Reset viewport to former size
glstate_->viewport(left, bottom, bak_w, bak_h);
}
if(_hideCoordsys) {
// Find coordsys node
ACG::SceneGraph::BaseNode* node = 0;
node = sceneGraphRoot_->find("Core Coordsys Node");
if(node != 0) {
node->show();
}
}
}
void glViewer::snapshot( int _width, int _height, bool _alpha )
......
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