Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2009-08-12 20:22:20 +0000
committerStijn Buys <ingar@osirion.org>2009-08-12 20:22:20 +0000
commitea18c25aef4aa0104852f314dd76e4ce446673f3 (patch)
tree928d7ecef63acda7b32d5243ef5cf14760e555c9 /src/model/asefile.cc
parent83b66522dfcad1b2428ce4fd81d83e39a051a4c5 (diff)
triangle/quad code cleanup,corrects submodel origin, enable quad rendering again
Diffstat (limited to 'src/model/asefile.cc')
-rw-r--r--src/model/asefile.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/model/asefile.cc b/src/model/asefile.cc
index 67be531..edbd848 100644
--- a/src/model/asefile.cc
+++ b/src/model/asefile.cc
@@ -450,7 +450,8 @@ Model * ASEFile::load(const std::string &name)
// caculate bounding box
model->model_minbbox = (asefile.ase_minbbox - center) * scale;
model->model_maxbbox = (asefile.ase_maxbbox - center) * scale;
- model->model_radius = model->model_maxbbox.length();
+ model->set_radius(model->model_maxbbox.length());
+ model->set_origin(center * scale);
// load the model faces into the fragment
for (FaceList::iterator it = asefile.ase_facelist.begin(); it != asefile.ase_facelist.end(); it++) {