From bbb7d96b6f12f5ad60204df2b0975971d81ae66c Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 28 Feb 2015 23:04:23 +0000 Subject: Do not draw world axis with r_axis enabled. --- src/render/draw.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/render/draw.cc b/src/render/draw.cc index f354780..c42248e 100644 --- a/src/render/draw.cc +++ b/src/render/draw.cc @@ -853,7 +853,7 @@ void draw_model_axis(const core::Entity *entity) gl::begin(gl::Lines); - gl::color(entity->color()); + gl::color(1.0f, 1.0f, 1.0f, 1.0f); gl::vertex(-r, 0.0f, 0.0f); gl::vertex(r, 0.0f, 0.0f); @@ -863,6 +863,8 @@ void draw_model_axis(const core::Entity *entity) gl::vertex(0.0f, 0.0f, -r); gl::vertex(0.0f, 0.0f, r); + + /* const math::Axis worldaxis(entity->axis().transpose()); @@ -876,6 +878,8 @@ void draw_model_axis(const core::Entity *entity) gl::vertex(worldaxis.up() * -1 * r); gl::vertex(worldaxis.up() * r); + + */ gl::end(); } -- cgit v1.2.3