Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui')
-rwxr-xr-xsrc/ui/modelview.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ui/modelview.cc b/src/ui/modelview.cc
index 4239294..a07922a 100755
--- a/src/ui/modelview.cc
+++ b/src/ui/modelview.cc
@@ -55,6 +55,11 @@ void ModelView::draw()
if (!modelview_modelname.size())
return;
+ math ::Vector2f center(global_location());
+
+ center.x += width() * 0.5f;
+ center.y += height() * 0.5f;
+
//model::Model *model = model::Model::find(modelview_modelname);
// gl 3d mode