Skip to content

Commit

Permalink
skip custom events when creating listeners
Browse files Browse the repository at this point in the history
fixes #7651
this fix had been applied [to the runtime](https://github.com/rive-app/rive/pull/7577) but not the editor

Diffs=
89f9b3bd5 skip custom events when creating listeners (#7819)
2c0927fc5 add two data converters (#7742)

Co-authored-by: hernan <[email protected]>
  • Loading branch information
bodymovin and bodymovin committed Aug 12, 2024
1 parent 3dbef04 commit 94ef390
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .rive_head
Original file line number Diff line number Diff line change
@@ -1 +1 @@
e0816fdfa0adde292f343b4a018b2f515a8bc1c4
89f9b3bd5e1f3715c9db996e0708fc4da10fe180
3 changes: 3 additions & 0 deletions lib/src/rive_core/state_machine_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,9 @@ class StateMachineController extends RiveAnimationController<CoreContext>
HashMap<Shape, _HitShape> hitShapeLookup = HashMap<Shape, _HitShape>();
for (final event in stateMachine.listeners) {
if (event is StateMachineListener) {
if (event.listenerType == ListenerType.event) {
continue;
}
// Resolve target on this artboard instance.
var node = core.resolve<Node>(event.targetId);
if (node == null) {
Expand Down

0 comments on commit 94ef390

Please sign in to comment.