diff --git a/example/assets/teeny_tiny.riv b/example/assets/teeny_tiny.riv index 26b855d..14c920e 100644 Binary files a/example/assets/teeny_tiny.riv and b/example/assets/teeny_tiny.riv differ diff --git a/lib/src/rive_core/shapes/path.dart b/lib/src/rive_core/shapes/path.dart index 62a6382..b575381 100644 --- a/lib/src/rive_core/shapes/path.dart +++ b/lib/src/rive_core/shapes/path.dart @@ -77,18 +77,9 @@ abstract class Path extends PathBase { void markPathDirty() { addDirt(ComponentDirt.path); - _shape?.pathChanged(this); - } - - void _invalidatePath() { _isValid = false; _cachedRenderVertices = null; - } - - @override - bool addDirt(int value, {bool recurse = false}) { - _invalidatePath(); - return super.addDirt(value, recurse: recurse); + _shape?.pathChanged(this); } List get vertices; diff --git a/pubspec.lock b/pubspec.lock index ca477ab..efae536 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -21,7 +21,7 @@ packages: name: characters url: "https://pub.dartlang.org" source: hosted - version: "1.0.0" + version: "1.1.0-nullsafety" charcode: dependency: transitive description: @@ -42,7 +42,7 @@ packages: name: collection url: "https://pub.dartlang.org" source: hosted - version: "1.14.13" + version: "1.15.0-nullsafety" fake_async: dependency: transitive description: @@ -73,14 +73,14 @@ packages: name: matcher url: "https://pub.dartlang.org" source: hosted - version: "0.12.8" + version: "0.12.9" meta: dependency: "direct main" description: name: meta url: "https://pub.dartlang.org" source: hosted - version: "1.1.8" + version: "1.3.0-nullsafety" path: dependency: transitive description: @@ -134,20 +134,20 @@ packages: name: test_api url: "https://pub.dartlang.org" source: hosted - version: "0.2.17" + version: "0.2.18" typed_data: dependency: transitive description: name: typed_data url: "https://pub.dartlang.org" source: hosted - version: "1.2.0" + version: "1.3.0-nullsafety" vector_math: dependency: transitive description: name: vector_math url: "https://pub.dartlang.org" source: hosted - version: "2.0.8" + version: "2.1.0-nullsafety" sdks: - dart: ">=2.9.0-14.0.dev <3.0.0" + dart: ">=2.9.0-18.0 <2.9.0"