Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-12-20 21:30:42 +0000
committerStijn Buys <ingar@osirion.org>2008-12-20 21:30:42 +0000
commit988d88a366329d99794e9271b648dccef451efbc (patch)
tree0288777891af2ec856632a3387b93776cdf4a026 /src
parentf36ec64b08c791e7b907ed8efd9a2baa44e7f8fd (diff)
fix func_rotate center
Diffstat (limited to 'src')
-rw-r--r--src/render/draw.cc4
1 files changed, 2 insertions, 2 deletions
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++) {