diff --git a/flare_dart/CHANGELOG.md b/flare_dart/CHANGELOG.md index 4a50a49..2ad17a3 100644 --- a/flare_dart/CHANGELOG.md +++ b/flare_dart/CHANGELOG.md @@ -1,3 +1,7 @@ +## [2.2.2] - 2019-10-11 12:55:44 + +- Call openObject before reading clip node and intersect, closeObject after. Fixes issue with reading in new clips in JSON. + ## [2.2.1] - 2019-10-11 12:38:09 - Mitigate path keyframes exported for non-paths (fixing this on Flare side too). diff --git a/flare_dart/lib/actor_node.dart b/flare_dart/lib/actor_node.dart index 0646b30..edd1b23 100644 --- a/flare_dart/lib/actor_node.dart +++ b/flare_dart/lib/actor_node.dart @@ -247,10 +247,12 @@ class ActorNode extends ActorComponent { if (clipCount > 0) { node._clips = List(clipCount); for (int i = 0; i < clipCount; i++) { - var clip = ActorClip(reader.readId("clip")); + reader.openObject("clip"); + var clip = ActorClip(reader.readId("node")); if (artboard.actor.version >= 23) { clip.intersect = reader.readBool("intersect"); } + reader.closeObject(); node._clips[i] = clip; } } diff --git a/flare_dart/pubspec.yaml b/flare_dart/pubspec.yaml index 9cae21e..b9c59b3 100644 --- a/flare_dart/pubspec.yaml +++ b/flare_dart/pubspec.yaml @@ -1,6 +1,6 @@ name: flare_dart description: Vector design and runtime animation. -version: 2.2.1 +version: 2.2.2 author: "2Dimensions Team " homepage: https://github.com/2d-inc/Flare-Flutter environment: diff --git a/flare_flutter/CHANGELOG.md b/flare_flutter/CHANGELOG.md index 55cb5d2..9f5afda 100644 --- a/flare_flutter/CHANGELOG.md +++ b/flare_flutter/CHANGELOG.md @@ -1,3 +1,7 @@ +## [1.6.3] - 2019-10-11 12:58:13 + +- Use latest flare_dart, fixing issue with reading clip nodes in JSON. + ## [1.6.2] - 2019-10-11 12:38:33 - Use latest flare_dart, mitigating a bad path keyframe issue. diff --git a/flare_flutter/pubspec.yaml b/flare_flutter/pubspec.yaml index 7db89d8..8fc20d3 100644 --- a/flare_flutter/pubspec.yaml +++ b/flare_flutter/pubspec.yaml @@ -1,6 +1,6 @@ name: flare_flutter description: Vector design and runtime animation for Flutter. -version: 1.6.2 +version: 1.6.3 author: "2Dimensions Team " homepage: https://github.com/2d-inc/Flare-Flutter environment: