From fcb40885e33b4671437b70458457925a4a69ce12 Mon Sep 17 00:00:00 2001 From: philter Date: Wed, 16 Oct 2024 01:29:28 +0000 Subject: [PATCH] Fix layout animation runtime Fixes an issue where layout animation wasn't working in runtimes when using hold keys. Diffs= 9d5076b883 Fix layout animation runtime (#8340) Co-authored-by: Philip Chung --- .rive_head | 2 +- src/layout_component.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.rive_head b/.rive_head index 7f05b13c..2190bbce 100644 --- a/.rive_head +++ b/.rive_head @@ -1 +1 @@ -638ee6434ebac8f230de6ea69bc70b907b3ca8ce +9d5076b88363c7811a9a70107ee43013b8bfd0cb diff --git a/src/layout_component.cpp b/src/layout_component.cpp index aba44b8d..b95bcdc7 100644 --- a/src/layout_component.cpp +++ b/src/layout_component.cpp @@ -709,8 +709,8 @@ void LayoutComponent::updateLayoutBounds() m_animationData.fromBounds = AABB(m_layoutLocationX, m_layoutLocationY, - m_layoutLocationX + this->width(), - m_layoutLocationY + this->height()); + m_layoutLocationX + m_layoutSizeWidth, + m_layoutLocationY + m_layoutSizeHeight); m_animationData.toBounds = AABB(left, top, left + width, top + height); if (m_animationData.elapsedSeconds > 0.1)