Skip to content

Commit

Permalink
add animation before setting exit time
Browse files Browse the repository at this point in the history
fixes #7728
This fix is not necessary now that we have the renderer in the editor, since nested artboards run in c++.
But since I was looking into it, and just in case, I added the fix on the flutter runtime.

Diffs=
1b6afc1e9 add animation before setting exit time (#7729)

Co-authored-by: hernan <hernan@rive.app>
  • Loading branch information
bodymovin and bodymovin committed Aug 1, 2024
1 parent 2ab7604 commit 05e454f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .rive_head
Original file line number Diff line number Diff line change
@@ -1 +1 @@
c3137b923ca5d62771f85dcae10afcba6de083d3
1b6afc1e96b6cac3a708b78381ce6fa7d0dd8058
4 changes: 1 addition & 3 deletions lib/src/core/importers/layer_state_importer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class LayerStateImporter extends ArtboardImportStackObject {
// animations.
if (state is BlendState) {
var blendState = state as BlendState;
blendState.internalAddAnimation(blendAnimation);
for (final transition
in state.transitions.whereType<BlendStateTransition>()) {
if (transition.exitBlendAnimationId >= 0 &&
Expand All @@ -27,9 +28,6 @@ class LayerStateImporter extends ArtboardImportStackObject {
blendState.animations[transition.exitBlendAnimationId];
}
}
}
if (state is BlendState) {
(state as BlendState).internalAddAnimation(blendAnimation);
return true;
}

Expand Down

0 comments on commit 05e454f

Please sign in to comment.