From 49f3e6c5429237dca6178715e6d9f7f2eeeba19b Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Mon, 11 Dec 2023 14:19:35 +0100 Subject: [PATCH 1/3] [flutter] Make texture atlas page filter quality configurable, see #2362 --- spine-flutter/CHANGELOG.md | 3 +++ spine-flutter/lib/spine_flutter.dart | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/spine-flutter/CHANGELOG.md b/spine-flutter/CHANGELOG.md index e1b62dd9b..c60cbde39 100644 --- a/spine-flutter/CHANGELOG.md +++ b/spine-flutter/CHANGELOG.md @@ -1,3 +1,6 @@ +# 4.1.12 +# FilterQuality for texture atlas pages is now set to medium. It is configurable via `Atlas.filterQuality`. See https://github.com/EsotericSoftware/spine-runtimes/issues/2362 + # 4.1.11 # Fixed clipping bug, see https://github.com/EsotericSoftware/spine-runtimes/issues/2431 diff --git a/spine-flutter/lib/spine_flutter.dart b/spine-flutter/lib/spine_flutter.dart index 699575722..24bc06777 100644 --- a/spine-flutter/lib/spine_flutter.dart +++ b/spine-flutter/lib/spine_flutter.dart @@ -101,6 +101,7 @@ class Vec2 { /// Use the static methods [fromAsset], [fromFile], and [fromHttp] to load an atlas. Call [dispose] /// when the atlas is no longer in use to release its resources. class Atlas { + static FilterQuality filterQuality = FilterQuality.medium; final spine_atlas _atlas; final List atlasPages; final List> atlasPagePaints; @@ -138,7 +139,7 @@ class Atlas { paints[blendMode] = Paint() ..shader = ImageShader(image, TileMode.clamp, TileMode.clamp, Matrix4 .identity() - .storage, filterQuality: FilterQuality.high) + .storage, filterQuality: Atlas.filterQuality) ..isAntiAlias = true ..blendMode = blendMode.canvasBlendMode; } From 73d892740dd50e24d73935251c9a16399b5988a0 Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Mon, 11 Dec 2023 14:24:54 +0100 Subject: [PATCH 2/3] [flutter] Properly invoke track entry listeners, closes #2349 --- spine-flutter/CHANGELOG.md | 1 + spine-flutter/lib/spine_flutter.dart | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/spine-flutter/CHANGELOG.md b/spine-flutter/CHANGELOG.md index c60cbde39..614fd0df6 100644 --- a/spine-flutter/CHANGELOG.md +++ b/spine-flutter/CHANGELOG.md @@ -1,5 +1,6 @@ # 4.1.12 # FilterQuality for texture atlas pages is now set to medium. It is configurable via `Atlas.filterQuality`. See https://github.com/EsotericSoftware/spine-runtimes/issues/2362 +# Track Entry listeners are now invoked properly, see https://github.com/EsotericSoftware/spine-runtimes/issues/2349 # 4.1.11 # Fixed clipping bug, see https://github.com/EsotericSoftware/spine-runtimes/issues/2431 diff --git a/spine-flutter/lib/spine_flutter.dart b/spine-flutter/lib/spine_flutter.dart index 24bc06777..54977bee0 100644 --- a/spine-flutter/lib/spine_flutter.dart +++ b/spine-flutter/lib/spine_flutter.dart @@ -3707,7 +3707,7 @@ class AnimationState { final nativeEvent = _bindings.spine_animation_state_events_get_event(_events, i); final event = nativeEvent.address == nullptr.address ? null : Event._(nativeEvent); if (_trackEntryListeners.containsKey(nativeEntry)) { - _trackEntryListeners[entry]?.call(type, entry, event); + _trackEntryListeners[nativeEntry]?.call(type, entry, event); } if (_stateListener != null) { _stateListener?.call(type, entry, event); From 18af88725f12c85945aa91ddb3a1b24bdbbb6a0a Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Mon, 11 Dec 2023 14:25:15 +0100 Subject: [PATCH 3/3] [flutter] Release 4.1.12 --- spine-flutter/pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spine-flutter/pubspec.yaml b/spine-flutter/pubspec.yaml index 1823f7221..e4883ccd1 100644 --- a/spine-flutter/pubspec.yaml +++ b/spine-flutter/pubspec.yaml @@ -1,6 +1,6 @@ name: spine_flutter description: The official Spine Flutter Runtime to load, display and interact with Spine animations. -version: 4.1.11 +version: 4.1.12 homepage: https://esotericsoftware.com repository: https://github.com/esotericsoftware/spine-runtimes issue_tracker: https://github.com/esotericsoftware/spine-runtimes/issues