Commit 94409b5
philter
Add support for setting ViewModel value using Listeners and comparing ViewModels in Transition Conditions (#11917) 46a089fc12
ViewModels can now be used in the following ways:
Setting ViewModel properties of type ViewModel to either: 1) another ViewModel property of type ViewModel or 2) the ViewModelInstance of the state machine's current data context
Comparing 2 ViewModel values in a transition condition using either 1) 2 different ViewModel properties of type ViewModel or 2) a ViewModel property of type ViewModel with the ViewModelInstance of the state machine's current data context.1 parent 5b816b5 commit 94409b5
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Submodule rive-runtime updated 22 files
- .rive_head+1-1
- dev/defs/data_bind/bindable_property_viewmodel.json+8
- include/rive/animation/transition_viewmodel_condition.hpp+77
- include/rive/data_bind/bindable_property_viewmodel.hpp+39
- include/rive/data_bind/context/context_value_viewmodel.hpp-3
- include/rive/data_bind/data_bind_context.hpp+4
- include/rive/generated/core_registry.hpp+3
- include/rive/generated/data_bind/bindable_property_viewmodel_base.hpp+37
- include/rive/viewmodel/viewmodel_instance.hpp+11
- include/rive/viewmodel/viewmodel_instance_viewmodel.hpp+2
- src/animation/listener_viewmodel_change.cpp+22-5
- src/animation/transition_viewmodel_condition.cpp+64
- src/data_bind/context/context_target_value.cpp+47-2
- src/data_bind/context/context_value.cpp+16-3
- src/data_bind/context/context_value_viewmodel.cpp+13-7
- src/data_bind/data_bind.cpp+2
- src/data_bind/data_bind_context.cpp+5-1
- src/data_bind/data_context.cpp+14
- src/file.cpp+2
- src/generated/data_bind/bindable_property_viewmodel_base.cpp+11
- src/nested_artboard.cpp+6-1
- src/viewmodel/viewmodel_instance_viewmodel.cpp+6
0 commit comments