mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 13:47:43 +00:00
CAnimPlaybackParms: Make class constexpr constructible
Allows for removal of some trivial runtime initializers.
This commit is contained in:
@@ -5859,7 +5859,7 @@ void CPlayer::SetHudDisable(float staticTimer, float outSpeed, float inSpeed) {
|
||||
}
|
||||
|
||||
void CPlayer::SetIntoBallReadyAnimation(CStateManager& mgr) {
|
||||
const CAnimPlaybackParms parms(2, -1, 1.f, true);
|
||||
constexpr CAnimPlaybackParms parms(2, -1, 1.f, true);
|
||||
x64_modelData->GetAnimationData()->SetAnimation(parms, false);
|
||||
x64_modelData->GetAnimationData()->EnableLooping(false);
|
||||
x64_modelData->AdvanceAnimation(0.f, mgr, kInvalidAreaId, true);
|
||||
|
||||
Reference in New Issue
Block a user