From 0a66bb76be41b8fce027b5d784f43bde64c6f6eb Mon Sep 17 00:00:00 2001 From: Luigi Rosso Date: Mon, 18 Jan 2021 17:07:13 -0800 Subject: [PATCH] Fixing crash introduced in 0.6.6. --- CHANGELOG.md | 4 ++++ lib/src/rive_core/artboard.dart | 2 +- pubspec.yaml | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fbda23a..0881cef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## [0.6.6+1] - 2021-01-18 17:06:17 + +- Fixes a crashing issue introduced in 0.6.6. + ## [0.6.6] - 2021-01-18 16:40:10 - Adds getters for start/endTime and reset() in LinearAnimationInstance diff --git a/lib/src/rive_core/artboard.dart b/lib/src/rive_core/artboard.dart index 7000fad..d2fd2a9 100644 --- a/lib/src/rive_core/artboard.dart +++ b/lib/src/rive_core/artboard.dart @@ -119,7 +119,7 @@ class Artboard extends ArtboardBase with ShapePaintContainer { void update(int dirt) { if (dirt & ComponentDirt.worldTransform != 0) { var rect = Rect.fromLTWH( - width * (-originX ?? 0), height * (-originY ?? 0), width, height); + width * -(originX ?? 0), height * -(originY ?? 0), width, height); path.reset(); path.addRect(rect); } diff --git a/pubspec.yaml b/pubspec.yaml index 1a54939..4a7e537 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: rive description: Rive 2 Flutter Runtime. This package provides runtime functionality for playing back and interacting with animations built with the Rive editor available at https://rive.app. -version: 0.6.6 +version: 0.6.6+1 repository: https://github.com/rive-app/rive-flutter homepage: https://rive.app