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.f.set(maxx, maxy, maxz);
|
||||||
m->boundingbox.g.set(maxx, maxy, minz);
|
m->boundingbox.g.set(maxx, maxy, minz);
|
||||||
|
|
||||||
m->boundingrad = std::max( std::abs(minx)+std::abs(maxx),
|
// m->boundingrad = std::max( std::abs(minx)+std::abs(maxx),
|
||||||
std::max( std::abs(miny)+std::abs(maxy),
|
// std::max( std::abs(miny)+std::abs(maxy),
|
||||||
std::abs(minz)+std::abs(maxz)));
|
// std::abs(minz)+std::abs(maxz)));
|
||||||
|
|
||||||
m->loaded = true;
|
m->loaded = true;
|
||||||
// std::cout << "Loaded!" << std::endl;
|
// std::cout << "Loaded!" << std::endl;
|
||||||
|
|
Loading…
Reference in New Issue