diff options
author | Stijn Buys <ingar@osirion.org> | 2009-08-12 20:22:20 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2009-08-12 20:22:20 +0000 |
commit | ea18c25aef4aa0104852f314dd76e4ce446673f3 (patch) | |
tree | 928d7ecef63acda7b32d5243ef5cf14760e555c9 /src/model/asefile.cc | |
parent | 83b66522dfcad1b2428ce4fd81d83e39a051a4c5 (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.cc | 3 |
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++) { |