Skip to content

Commit

Permalink
fix triggers reset
Browse files Browse the repository at this point in the history
triggers were not being correctly reset, so they would trickle onto the next frame.
This essentially resets triggers on every frame to make sure they are user only once.
In order to support ignoring triggers, the interface of some classes has changed to propagate the boolean down to whoever needs to handle it.

Diffs=
f69757c8dd fix triggers reset (#8732)
  • Loading branch information
bodymovin committed Dec 11, 2024
1 parent a2917d8 commit 765575c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .rive_head
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ab29c640ccc707dc5482446519ee3e8723fbf039
f69757c8dd221c54942fee2e47bae55df8f6dc12
2 changes: 1 addition & 1 deletion submodules/rive-runtime
Submodule rive-runtime updated 34 files
+1 −1 .rive_head
+2 −1 include/rive/animation/state_machine_instance.hpp
+2 −2 include/rive/animation/transition_bool_condition.hpp
+2 −1 include/rive/animation/transition_comparator.hpp
+2 −2 include/rive/animation/transition_condition.hpp
+2 −2 include/rive/animation/transition_number_condition.hpp
+2 −1 include/rive/animation/transition_property_artboard_comparator.hpp
+2 −1 include/rive/animation/transition_property_viewmodel_comparator.hpp
+2 −2 include/rive/animation/transition_trigger_condition.hpp
+2 −1 include/rive/animation/transition_value_boolean_comparator.hpp
+2 −1 include/rive/animation/transition_value_color_comparator.hpp
+2 −1 include/rive/animation/transition_value_number_comparator.hpp
+2 −1 include/rive/animation/transition_value_string_comparator.hpp
+2 −2 include/rive/animation/transition_viewmodel_condition.hpp
+1 −0 include/rive/viewmodel/viewmodel_instance.hpp
+3 −1 include/rive/viewmodel/viewmodel_instance_trigger.hpp
+1 −0 include/rive/viewmodel/viewmodel_instance_value.hpp
+1 −0 include/rive/viewmodel/viewmodel_instance_viewmodel.hpp
+9 −1 src/animation/state_machine_instance.cpp
+1 −2 src/animation/state_transition.cpp
+2 −1 src/animation/transition_bool_condition.cpp
+2 −1 src/animation/transition_comparator.cpp
+2 −1 src/animation/transition_number_condition.cpp
+2 −1 src/animation/transition_property_artboard_comparator.cpp
+8 −11 src/animation/transition_property_viewmodel_comparator.cpp
+6 −1 src/animation/transition_trigger_condition.cpp
+2 −1 src/animation/transition_value_boolean_comparator.cpp
+2 −1 src/animation/transition_value_color_comparator.cpp
+2 −1 src/animation/transition_value_number_comparator.cpp
+2 −1 src/animation/transition_value_string_comparator.cpp
+4 −2 src/animation/transition_viewmodel_condition.cpp
+8 −0 src/viewmodel/viewmodel_instance.cpp
+3 −1 src/viewmodel/viewmodel_instance_trigger.cpp
+8 −0 src/viewmodel/viewmodel_instance_viewmodel.cpp

0 comments on commit 765575c

Please sign in to comment.