Fixed model bounding radius
This commit is contained in:
parent
bff2ad312d
commit
d5ec792b66
|
@ -228,9 +228,9 @@ bool LoadOBJ::load(Model *m) {
|
|||
m->boundingbox.f.set(maxx, maxy, maxz);
|
||||
m->boundingbox.g.set(maxx, maxy, minz);
|
||||
|
||||
m->boundingrad = std::max( std::abs(minx)+std::abs(maxx),
|
||||
std::max( std::abs(miny)+std::abs(maxy),
|
||||
std::abs(minz)+std::abs(maxz)));
|
||||
// m->boundingrad = std::max( std::abs(minx)+std::abs(maxx),
|
||||
// std::max( std::abs(miny)+std::abs(maxy),
|
||||
// std::abs(minz)+std::abs(maxz)));
|
||||
|
||||
m->loaded = true;
|
||||
// std::cout << "Loaded!" << std::endl;
|
||||
|
|
Loading…
Reference in New Issue