Commit cf9c0001 authored by Jan Möbius's avatar Jan Möbius
Browse files

Dennis fixed wheel bug ( bug 267 )

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@6761 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 578a0684
...@@ -2052,15 +2052,37 @@ void glViewer::snapshot() ...@@ -2052,15 +2052,37 @@ void glViewer::snapshot()
} }
void glViewer::slotHideWheels() { void glViewer::slotHideWheels() {
wheelX_->hide(); if (isVisible())
wheelY_->hide(); {
wheelZ_->hide(); wheelX_->hide();
wheelY_->hide();
wheelZ_->hide();
}
else
{
show ();
wheelX_->hide();
wheelY_->hide();
wheelZ_->hide();
hide ();
}
} }
void glViewer::slotShowWheels() { void glViewer::slotShowWheels() {
wheelX_->show(); if (isVisible())
wheelY_->show(); {
wheelZ_->show(); wheelX_->show();
wheelY_->show();
wheelZ_->show();
}
else
{
show ();
wheelX_->show();
wheelY_->show();
wheelZ_->show();
hide ();
}
} }
bool glViewer::wheelsVisible() { bool glViewer::wheelsVisible() {
......
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