From 101916cd47badc14477591150670a00b1233a106 Mon Sep 17 00:00:00 2001 From: philter Date: Wed, 25 Oct 2023 05:36:54 +0000 Subject: [PATCH] Apply NestedInput initial values This update applies the initial values for nested inputs (as set in the Inputs panel of the Editor), so that NestedInputs behave in the same way as regular StateMachineInputs. There are a couple of reasons to do this: 1. Currently if you have a nested artboard and set the initial nested input value, it will only apply in the editor when viewing that artboard. If you nest that artboard in another artboard, the initial values do not apply. Similarly, initial nested values do not apply in the runtimes. Currently StateMachineInputs do apply initial values, so this brings NestedInputs in line with that. 2. There was a bug Hernan noticed where there in certain cases, NestedInput values that were keyed on a timeline did not apply properly in cases where the keyed value was the same as the default value. In these cases, the keyed value is ignored because it and the default values were the same. In addition, since the initial value wasn't being applied, the state wasn't being update properly based on the nested input's value. Diffs= 6d9aa0179 Apply NestedInput initial values (#6140) --- .rive_head | 2 +- submodules/rive-cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.rive_head b/.rive_head index 2e9e535..90492b7 100644 --- a/.rive_head +++ b/.rive_head @@ -1 +1 @@ -92c8f1164db98bb5462f26dd73c89da4fa2c8b76 +6d9aa017961638f7576a2ea52a8928c813e28dbb diff --git a/submodules/rive-cpp b/submodules/rive-cpp index ef1a6dc..92fbbd4 160000 --- a/submodules/rive-cpp +++ b/submodules/rive-cpp @@ -1 +1 @@ -Subproject commit ef1a6dceaee826bfb71c0654ad08c0df2d6dcc01 +Subproject commit 92fbbd4ebce597fd80ee75dc08bc34ca3ab59c7d