Merge pull request #137 from DavidWyand-GG/issue136-ZoningBug

Fix for Issue #136 for Zoning Bug
This commit is contained in:
David Wyand 2012-11-08 15:20:51 -08:00
commit 1af290bd3b
2 changed files with 2 additions and 2 deletions

View file

@ -52,7 +52,7 @@ void OrientedBox3F::set( const MatrixF& transform, const Point3F& extents )
mAxes[ ForwardVector ] = transform.getForwardVector();
mAxes[ UpVector ] = transform.getUpVector();
mHalfExtents = extents;
mHalfExtents = extents * 0.5f;
_initPoints();
}

View file

@ -73,7 +73,7 @@ void ScenePolyhedralZone::_updateOrientedWorldBox()
if( mIsBox )
Parent::_updateOrientedWorldBox();
else
mOrientedWorldBox.set( getTransform(), Point3F( mObjBox.len_x(), mObjBox.len_y(), mObjBox.len_z() ) );
mOrientedWorldBox.set( getTransform(), mObjBox.getExtents() * getScale() );
}
//-----------------------------------------------------------------------------