Fixed model bounding radius
This commit is contained in:
parent
bff2ad312d
commit
d5ec792b66
|
@ -227,10 +227,10 @@ bool LoadOBJ::load(Model *m) {
|
|||
m->boundingbox.e.set(minx, maxy, maxz);
|
||||
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