fix bounds box display

This commit is contained in:
AzaezelX 2022-07-24 00:14:19 -05:00
parent fbc304badb
commit 74d847c513

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