propagate parent input change to nested input

We have decided to add a new attribute to our code generator that will allow to overwrite the behavior of property setters for the c++ runtime.
For the editor, the solution is more complex because we still need to reflect the nested artboard value in the inspector so users can follow changes both at the parent and the child level.

Diffs=
fee67f16d propagate parent input change to nested input (#6878)
ff2c0cbf6 apply final update if it has not been applied before (#6930)
f3739347c Get wasm sizes back down. (#6927)
a0a40213f No simd canvas (#6926)
e2328daeb More LTO tweaks (#6904)
cae08a3c5 Add a @rive-app/webgl2 package that uses PLS (#6845)

Co-authored-by: hernan <hernan@rive.app>
This commit is contained in:
bodymovin
2024-03-28 00:09:58 +00:00
parent 380ae10d79
commit 584d00fa00
3 changed files with 15 additions and 1 deletions

View File

@ -1 +1 @@
f4ef0e301ea18efa2863b2bff5450d0b6dfa8f67
fee67f16df7648b5c9bc100b6221c7ba5baca0af

View File

@ -7,4 +7,11 @@ class NestedBool extends NestedBoolBase {
@override
void updateValue() => nestedStateMachine?.setInputValue(inputId, nestedValue);
@override
set nestedValue(bool value) {
super.nestedValue = value;
updateValue();
}
}

View File

@ -7,4 +7,11 @@ class NestedNumber extends NestedNumberBase {
@override
void updateValue() => nestedStateMachine?.setInputValue(inputId, nestedValue);
@override
set nestedValue(double value) {
super.nestedValue = value;
updateValue();
}
}