mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 09:16:01 +08:00
[ios] Fix the issue where the SkeletonBounds instance couldn’t be initialized (#2669)
Co-authored-by: liqiang <liqiangbj01@kanyun.com>
This commit is contained in:
parent
648170f325
commit
000df07027
@ -1051,6 +1051,7 @@ SPINE_CPP_LITE_EXPORT void spine_texture_region_set_original_width(spine_texture
|
||||
SPINE_CPP_LITE_EXPORT int32_t spine_texture_region_get_original_height(spine_texture_region textureRegion);
|
||||
SPINE_CPP_LITE_EXPORT void spine_texture_region_set_original_height(spine_texture_region textureRegion, int32_t originalHeight);
|
||||
|
||||
// @ignore
|
||||
SPINE_CPP_LITE_EXPORT spine_skeleton_bounds spine_skeleton_bounds_create();
|
||||
SPINE_CPP_LITE_EXPORT void spine_skeleton_bounds_dispose(spine_skeleton_bounds bounds);
|
||||
SPINE_CPP_LITE_EXPORT void spine_skeleton_bounds_update(spine_skeleton_bounds bounds, spine_skeleton skeleton, spine_bool updateAabb);
|
||||
|
||||
@ -313,3 +313,9 @@ internal enum FileSource {
|
||||
extension String: Error {
|
||||
|
||||
}
|
||||
|
||||
public extension SkeletonBounds {
|
||||
static func create() -> SkeletonBounds {
|
||||
return SkeletonBounds(spine_skeleton_bounds_create())
|
||||
}
|
||||
}
|
||||
|
||||
@ -1757,11 +1757,6 @@ public final class SkeletonBounds: NSObject {
|
||||
return spine_skeleton_bounds_get_height(wrappee)
|
||||
}
|
||||
|
||||
@discardableResult
|
||||
public func create() -> SkeletonBounds {
|
||||
return .init(spine_skeleton_bounds_create())
|
||||
}
|
||||
|
||||
public func dispose() {
|
||||
if disposed { return }
|
||||
disposed = true
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user