diff --git a/.rive_head b/.rive_head index db9816a..ebdacc7 100644 --- a/.rive_head +++ b/.rive_head @@ -1 +1 @@ -c3137b923ca5d62771f85dcae10afcba6de083d3 +1b6afc1e96b6cac3a708b78381ce6fa7d0dd8058 diff --git a/lib/src/core/importers/layer_state_importer.dart b/lib/src/core/importers/layer_state_importer.dart index b3fa662..8b81f1c 100644 --- a/lib/src/core/importers/layer_state_importer.dart +++ b/lib/src/core/importers/layer_state_importer.dart @@ -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()) { 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; }