Fix bounding box calculations for Animated Models

This commit is contained in:
Wojtek Figat
2021-06-01 11:55:35 +02:00
parent 9b0b11f08f
commit 772172ed6b
3 changed files with 6 additions and 6 deletions

View File

@@ -439,8 +439,7 @@ void AnimatedModel::UpdateLocalBounds()
}
// Scale bounds
box.Minimum *= BoundsScale;
box.Maximum *= BoundsScale;
box = box.MakeScaled(box, BoundsScale);
_boxLocal = box;
}
@@ -502,7 +501,6 @@ void AnimatedModel::OnSkinnedModelLoaded()
{
Entries.SetupIfInvalid(SkinnedModel);
UpdateBounds();
GraphInstance.Invalidate();
if (_blendShapes.Weights.HasItems())
_blendShapes.WeightsDirty = true;