Fixes and tweaks
This commit is contained in:
@@ -327,14 +327,6 @@ void AnimatedModel::SyncParameters()
|
||||
}
|
||||
}
|
||||
|
||||
void AnimatedModel::UpdateBounds()
|
||||
{
|
||||
UpdateLocalBounds();
|
||||
|
||||
BoundingBox::Transform(_boxLocal, _world, _box);
|
||||
BoundingSphere::FromBox(_box, _sphere);
|
||||
}
|
||||
|
||||
void AnimatedModel::BeginPlay(SceneBeginData* data)
|
||||
{
|
||||
if (SkinnedModel && SkinnedModel->IsLoaded())
|
||||
@@ -401,6 +393,14 @@ void AnimatedModel::UpdateLocalBounds()
|
||||
_boxLocal = box;
|
||||
}
|
||||
|
||||
void AnimatedModel::UpdateBounds()
|
||||
{
|
||||
UpdateLocalBounds();
|
||||
|
||||
BoundingBox::Transform(_boxLocal, _world, _box);
|
||||
BoundingSphere::FromBox(_box, _sphere);
|
||||
}
|
||||
|
||||
void AnimatedModel::OnAnimUpdate()
|
||||
{
|
||||
UpdateBounds();
|
||||
|
||||
Reference in New Issue
Block a user