summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2012-04-23 23:20:48 (GMT)
committerClifford Wolf <clifford@clifford.at>2012-04-23 23:20:48 (GMT)
commit940946c060e682446994ba6b671ce7f6bd8b6da5 (patch)
tree3bb7fc93e1503cd2465eb60408d554c0db1a7f23
parenta718c4a59dd251dd4c2cf8fca1ae6a5ebe1ad990 (diff)
Fixed rendering of crosshairs position
-rw-r--r--src/glview.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glview.cc b/src/glview.cc
index 0f9ec5b..5ff6c2c 100644
--- a/src/glview.cc
+++ b/src/glview.cc
@@ -393,8 +393,6 @@ void GLView::paintGL()
glRotated(object_rot_y, 0.0, 1.0, 0.0);
glRotated(object_rot_z, 0.0, 0.0, 1.0);
- glTranslated(object_trans_x, object_trans_y, object_trans_z);
-
// FIXME: Crosshairs and axes are lighted, this doesn't make sense and causes them
// to change color based on view orientation.
if (showcrosshairs)
@@ -412,6 +410,8 @@ void GLView::paintGL()
glEnd();
}
+ glTranslated(object_trans_x, object_trans_y, object_trans_z);
+
// Large gray axis cross inline with the model
// FIXME: This is always gray - adjust color to keep contrast with background
if (showaxes)
contact: Jan Huwald // Impressum