Skip to content

Commit

Permalink
Do not play animation if mode is PLAYBACK_NONE
Browse files Browse the repository at this point in the history
  • Loading branch information
britzl committed Apr 22, 2024
1 parent 63fc53b commit 8d07f00
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions defold-rive/src/comp_rive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -894,6 +894,11 @@ namespace dmRive
float offset = ddf->m_Offset;
float playback_rate = ddf->m_PlaybackRate;

if (playback_mode == dmGameObject::PLAYBACK_NONE)
{
return true;
}

int animation_index;
rive::LinearAnimation* animation = FindAnimation(component->m_ArtboardInstance.get(), data, &animation_index, anim_id);

Expand Down

0 comments on commit 8d07f00

Please sign in to comment.