From 2ce04f06f57b3f2189384b21cf13f3a6cf931c61 Mon Sep 17 00:00:00 2001 From: philter Date: Thu, 16 Jan 2025 16:42:49 +0000 Subject: [PATCH] Fix layout animation repeat This fixes a bug with layout animation (**editor only**): If a layout's bounds change while it is currently performing a layout animation, sometimes it will repeat the same animation after the first animation has completed. This was particularly evident when using spring interpolation. The root cause was an incorrect comparison (using == rather than the implemented equals() function) between the target layout bounds and the current animated bounds. In addition, this PR fixes an inconsistency between runtime layout animation and editor. Editor was previously restricting animation to relative layouts only, now we allow relative and absolute layout animations. Diffs= 61e927c9cf Fix layout animation repeat (#8875) --- .rive_head | 2 +- submodules/rive-cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.rive_head b/.rive_head index 163229c..905ec16 100644 --- a/.rive_head +++ b/.rive_head @@ -1 +1 @@ -5b9b388fe9a3874a4c6a3f81dff310c9091198c1 +61e927c9cff9d2e5c86842ff4ea493bd6916d76a diff --git a/submodules/rive-cpp b/submodules/rive-cpp index aadcd44..1ae9e50 160000 --- a/submodules/rive-cpp +++ b/submodules/rive-cpp @@ -1 +1 @@ -Subproject commit aadcd44f0d426bc8be62aa101edecf4b3cf77b8d +Subproject commit 1ae9e50113a77d85be54469155ae4061b21dc6da