mirror of
https://github.com/rive-app/rive-flutter
synced 2025-07-05 21:55:58 +00:00
add animation before setting exit time
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>
This commit is contained in:
@ -1 +1 @@
|
||||
c3137b923ca5d62771f85dcae10afcba6de083d3
|
||||
1b6afc1e96b6cac3a708b78381ce6fa7d0dd8058
|
||||
|
@ -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 &&
|
||||
@ -27,9 +28,6 @@ class LayerStateImporter extends ArtboardImportStackObject {
|
||||
blendState.animations[transition.exitBlendAnimationId];
|
||||
}
|
||||
}
|
||||
}
|
||||
if (state is BlendState) {
|
||||
(state as BlendState).internalAddAnimation(blendAnimation);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user