Fix transform scaling applying to nested objects when drawing
#1796 #1350
This commit is contained in:
@@ -213,7 +213,7 @@ void SpriteRender::OnTransformChanged()
|
||||
|
||||
const BoundingSphere localSphere(Vector3::Zero, _size.Length());
|
||||
Matrix world;
|
||||
_transform.GetWorld(world);
|
||||
GetLocalToWorldMatrix(world);
|
||||
BoundingSphere::Transform(localSphere, world, _sphere);
|
||||
BoundingBox::FromSphere(_sphere, _box);
|
||||
if (_sceneRenderingKey != -1)
|
||||
|
||||
Reference in New Issue
Block a user