diff --git a/spine-cpp/spine-cpp-lite/spine-cpp-lite.cpp b/spine-cpp/spine-cpp-lite/spine-cpp-lite.cpp index 450390b8f..afe683fb9 100644 --- a/spine-cpp/spine-cpp-lite/spine-cpp-lite.cpp +++ b/spine-cpp/spine-cpp-lite/spine-cpp-lite.cpp @@ -1525,7 +1525,9 @@ spine_bounds spine_skeleton_get_bounds(spine_skeleton skeleton) { if (skeleton == nullptr) return (spine_bounds) bounds; Skeleton *_skeleton = (Skeleton *) skeleton; Vector vertices; - _skeleton->getBounds(bounds->x, bounds->y, bounds->width, bounds->height, vertices); + SkeletonClipping clipper; + + _skeleton->getBounds(bounds->x, bounds->y, bounds->width, bounds->height, vertices, &clipper); return (spine_bounds) bounds; } diff --git a/spine-flutter/CHANGELOG.md b/spine-flutter/CHANGELOG.md index a35d2b9cd..69b28344f 100644 --- a/spine-flutter/CHANGELOG.md +++ b/spine-flutter/CHANGELOG.md @@ -1,3 +1,6 @@ +# 4.2.26 +- `Skeleton.getBounds()` takes clipping into consideration. + # 4.2.25 - Switch to spine-cpp-lite diff --git a/spine-flutter/example/android/build.gradle b/spine-flutter/example/android/build.gradle index 83ae22004..3cdaac958 100644 --- a/spine-flutter/example/android/build.gradle +++ b/spine-flutter/example/android/build.gradle @@ -26,6 +26,6 @@ subprojects { project.evaluationDependsOn(':app') } -task clean(type: Delete) { +tasks.register("clean", Delete) { delete rootProject.buildDir } diff --git a/spine-flutter/lib/assets/libspine_flutter.wasm b/spine-flutter/lib/assets/libspine_flutter.wasm index 2f7d7f9de..56a1c920a 100755 Binary files a/spine-flutter/lib/assets/libspine_flutter.wasm and b/spine-flutter/lib/assets/libspine_flutter.wasm differ diff --git a/spine-flutter/pubspec.yaml b/spine-flutter/pubspec.yaml index 134afedae..beacc15ea 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.2.25 +version: 4.2.26 homepage: https://esotericsoftware.com repository: https://github.com/esotericsoftware/spine-runtimes issue_tracker: https://github.com/esotericsoftware/spine-runtimes/issues