From 988d88a366329d99794e9271b648dccef451efbc Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 20 Dec 2008 21:30:42 +0000 Subject: fix func_rotate center --- src/render/draw.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/render/draw.cc b/src/render/draw.cc index 2566dd0..afff831 100644 --- a/src/render/draw.cc +++ b/src/render/draw.cc @@ -581,10 +581,10 @@ void draw_model_fragments(core::Entity *entity) if (group->type() == model::FragmentGroup::Rotate) { gl::push(); - gl::translate(group->location() * -1.0f); + gl::translate(group->location()); float angle = math::degrees360f(core::application()->time() * 90.0f); gl::rotate(angle, math::Vector3f::Xaxis()); - gl::translate(group->location()); + gl::translate(group->location()* -1.0f); } for (model::FragmentGroup::iterator fit = group->begin(); fit != group->end(); fit++) { -- cgit v1.2.3