mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-16 09:04:38 +00:00
Tabs n' spaces
This commit is contained in:
parent
3ed1cafcbe
commit
640e50565b
1 changed files with 7 additions and 7 deletions
|
|
@ -1167,15 +1167,15 @@ void GuiShapeEdPreview::computeSceneBounds(Box3F& bounds)
|
||||||
|
|
||||||
if (bounds.getExtents().x < POINT_EPSILON || bounds.getExtents().y < POINT_EPSILON || bounds.getExtents().z < POINT_EPSILON)
|
if (bounds.getExtents().x < POINT_EPSILON || bounds.getExtents().y < POINT_EPSILON || bounds.getExtents().z < POINT_EPSILON)
|
||||||
{
|
{
|
||||||
bounds.set(Point3F::Zero);
|
bounds.set(Point3F::Zero);
|
||||||
|
|
||||||
//We probably don't have any actual meshes in this model, so compute using the bones if we have them
|
//We probably don't have any actual meshes in this model, so compute using the bones if we have them
|
||||||
for (S32 i = 0; i < mModel->getShape()->nodes.size(); i++)
|
for (S32 i = 0; i < mModel->getShape()->nodes.size(); i++)
|
||||||
{
|
{
|
||||||
Point3F nodePos = mModel->mNodeTransforms[i].getPosition();
|
Point3F nodePos = mModel->mNodeTransforms[i].getPosition();
|
||||||
|
|
||||||
bounds.extend(nodePos);
|
bounds.extend(nodePos);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue