Merge pull request #830 from Azaezel/alpha40/boundsDisplayfix

fix bounds box display
This commit is contained in:
Brian Roberts 2022-07-24 20:56:09 -05:00 committed by GitHub
commit 70971f7c6c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -503,7 +503,7 @@ void SceneManager::_renderScene( SceneRenderState* state, U32 objectMask, SceneZ
const Box3F& worldBox = object->getWorldBox();
GFX->getDrawUtil()->drawObjectBox(
desc,
Point3F( worldBox.len_x(), worldBox.len_y(), worldBox.len_z() ),
Point3F( worldBox.len_x() / 2, worldBox.len_y() / 2, worldBox.len_z() / 2),
worldBox.getCenter(),
MatrixF::Identity,
ColorI::WHITE