mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 09:46:02 +08:00
[unity] Fixed missing using statement around stream of commit fb8bc40. See #2851.
This commit is contained in:
parent
80479320f7
commit
5a0d0ed696
@ -215,7 +215,9 @@ namespace Spine.Unity {
|
|||||||
try {
|
try {
|
||||||
if (hasBinaryExtension) {
|
if (hasBinaryExtension) {
|
||||||
#if UNSAFE_DIRECT_ACCESS_TEXT_ASSET_DATA
|
#if UNSAFE_DIRECT_ACCESS_TEXT_ASSET_DATA
|
||||||
loadedSkeletonData = SkeletonDataAsset.ReadSkeletonData(skeletonJSON.GetStreamUnsafe(), attachmentLoader, skeletonDataScale);
|
using (Stream stream = skeletonJSON.GetStreamUnsafe()) {
|
||||||
|
loadedSkeletonData = SkeletonDataAsset.ReadSkeletonData(stream, attachmentLoader, skeletonDataScale);
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
loadedSkeletonData = SkeletonDataAsset.ReadSkeletonData(skeletonJSON.bytes, attachmentLoader, skeletonDataScale);
|
loadedSkeletonData = SkeletonDataAsset.ReadSkeletonData(skeletonJSON.bytes, attachmentLoader, skeletonDataScale);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
"name": "com.esotericsoftware.spine.spine-unity",
|
"name": "com.esotericsoftware.spine.spine-unity",
|
||||||
"displayName": "spine-unity Runtime",
|
"displayName": "spine-unity Runtime",
|
||||||
"description": "This plugin provides the spine-unity runtime core.",
|
"description": "This plugin provides the spine-unity runtime core.",
|
||||||
"version": "4.2.105",
|
"version": "4.2.106",
|
||||||
"unity": "2018.3",
|
"unity": "2018.3",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Esoteric Software",
|
"name": "Esoteric Software",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user