diff options
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++) { |