mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
bounds to mBounds conflict avoidance
This commit is contained in:
parent
f08339c534
commit
242a51eefe
22 changed files with 50 additions and 50 deletions
|
|
@ -1220,12 +1220,12 @@ void TSShapeLoader::install()
|
|||
}
|
||||
}
|
||||
|
||||
computeBounds(shape->bounds);
|
||||
if (!shape->bounds.isValidBox())
|
||||
shape->bounds = Box3F(1.0f);
|
||||
computeBounds(shape->mBounds);
|
||||
if (!shape->mBounds.isValidBox())
|
||||
shape->mBounds = Box3F(1.0f);
|
||||
|
||||
shape->bounds.getCenter(&shape->center);
|
||||
shape->radius = (shape->bounds.maxExtents - shape->center).len();
|
||||
shape->mBounds.getCenter(&shape->center);
|
||||
shape->radius = (shape->mBounds.maxExtents - shape->center).len();
|
||||
shape->tubeRadius = shape->radius;
|
||||
|
||||
shape->init();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue