Fixed an issue where system transition animations would sometimes not play after changing their type.

This commit is contained in:
Leon Styhre 2023-02-03 19:52:33 +01:00
parent 864d88ec8a
commit df9f3cf0c4

View file

@ -46,7 +46,11 @@ public:
void render(const glm::mat4& parentTrans) override; void render(const glm::mat4& parentTrans) override;
bool isScrolling() { return mPrimary->isScrolling(); } bool isScrolling() { return mPrimary->isScrolling(); }
void stopScrolling() { mPrimary->stopScrolling(); } void stopScrolling()
{
mPrimary->stopScrolling();
mCamOffset = static_cast<float>(mPrimary->getCursor());
}
bool isSystemAnimationPlaying(unsigned char slot) { return mPrimary->isAnimationPlaying(slot); } bool isSystemAnimationPlaying(unsigned char slot) { return mPrimary->isAnimationPlaying(slot); }
void finishSystemAnimation(unsigned char slot) void finishSystemAnimation(unsigned char slot)
{ {