mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 01:06:00 +08:00
[flutter] Skeleton.getBounds() takes clipping into consideration (see #2515)
This commit is contained in:
parent
b8f0aaaacc
commit
e1d7310511
@ -1525,7 +1525,9 @@ spine_bounds spine_skeleton_get_bounds(spine_skeleton skeleton) {
|
|||||||
if (skeleton == nullptr) return (spine_bounds) bounds;
|
if (skeleton == nullptr) return (spine_bounds) bounds;
|
||||||
Skeleton *_skeleton = (Skeleton *) skeleton;
|
Skeleton *_skeleton = (Skeleton *) skeleton;
|
||||||
Vector<float> vertices;
|
Vector<float> 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;
|
return (spine_bounds) bounds;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,3 +1,6 @@
|
|||||||
|
# 4.2.26
|
||||||
|
- `Skeleton.getBounds()` takes clipping into consideration.
|
||||||
|
|
||||||
# 4.2.25
|
# 4.2.25
|
||||||
- Switch to spine-cpp-lite
|
- Switch to spine-cpp-lite
|
||||||
|
|
||||||
|
|||||||
@ -26,6 +26,6 @@ subprojects {
|
|||||||
project.evaluationDependsOn(':app')
|
project.evaluationDependsOn(':app')
|
||||||
}
|
}
|
||||||
|
|
||||||
task clean(type: Delete) {
|
tasks.register("clean", Delete) {
|
||||||
delete rootProject.buildDir
|
delete rootProject.buildDir
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
@ -1,6 +1,6 @@
|
|||||||
name: spine_flutter
|
name: spine_flutter
|
||||||
description: The official Spine Flutter Runtime to load, display and interact with Spine animations.
|
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
|
homepage: https://esotericsoftware.com
|
||||||
repository: https://github.com/esotericsoftware/spine-runtimes
|
repository: https://github.com/esotericsoftware/spine-runtimes
|
||||||
issue_tracker: https://github.com/esotericsoftware/spine-runtimes/issues
|
issue_tracker: https://github.com/esotericsoftware/spine-runtimes/issues
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user