mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 23:24:41 +00:00
Merge pull request #594 from LuisAntonRebollo/unit-tests-without-crash
Increased stability Torque3D: unit-tests running without a crash.
This commit is contained in:
commit
feec36731e
18 changed files with 113 additions and 19 deletions
|
|
@ -71,6 +71,12 @@ bool VehicleBlocker::onAdd()
|
|||
|
||||
mObjBox.minExtents.set(-mDimensions.x, -mDimensions.y, 0);
|
||||
mObjBox.maxExtents.set( mDimensions.x, mDimensions.y, mDimensions.z);
|
||||
if( !mObjBox.isValidBox() )
|
||||
{
|
||||
Con::errorf("VehicleBlocker::onAdd - Fail - No valid object box");
|
||||
return false;
|
||||
}
|
||||
|
||||
resetWorldBox();
|
||||
setRenderTransform(mObjToWorld);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue