add something
This commit is contained in:
@@ -21,11 +21,11 @@ namespace SpineViewer.Spine.Implementations.SkeletonConverter
|
|||||||
|
|
||||||
protected override JsonObject ReadBinary(string binPath)
|
protected override JsonObject ReadBinary(string binPath)
|
||||||
{
|
{
|
||||||
using var input = File.OpenRead(binPath);
|
|
||||||
var root = new JsonObject();
|
var root = new JsonObject();
|
||||||
|
using var input = File.OpenRead(binPath);
|
||||||
|
|
||||||
reader = new(input);
|
|
||||||
this.root = root;
|
this.root = root;
|
||||||
|
reader = new(input);
|
||||||
|
|
||||||
ReadSkeleton();
|
ReadSkeleton();
|
||||||
ReadStrings();
|
ReadStrings();
|
||||||
@@ -38,8 +38,8 @@ namespace SpineViewer.Spine.Implementations.SkeletonConverter
|
|||||||
ReadEvents();
|
ReadEvents();
|
||||||
ReadAnimations();
|
ReadAnimations();
|
||||||
|
|
||||||
this.root = null;
|
|
||||||
reader = null;
|
reader = null;
|
||||||
|
this.root = null;
|
||||||
|
|
||||||
idx2event.Clear();
|
idx2event.Clear();
|
||||||
|
|
||||||
@@ -812,11 +812,11 @@ namespace SpineViewer.Spine.Implementations.SkeletonConverter
|
|||||||
protected override void WriteBinary(JsonObject root, string binPath, bool nonessential = false)
|
protected override void WriteBinary(JsonObject root, string binPath, bool nonessential = false)
|
||||||
{
|
{
|
||||||
this.nonessential = nonessential;
|
this.nonessential = nonessential;
|
||||||
using var outputBody = new MemoryStream(); // 先把主体写入内存缓冲区
|
|
||||||
|
|
||||||
writer = new(outputBody);
|
|
||||||
this.root = root;
|
this.root = root;
|
||||||
|
|
||||||
|
using var outputBody = new MemoryStream(); // 先把主体写入内存缓冲区
|
||||||
|
writer = new(outputBody);
|
||||||
|
|
||||||
WriteBones();
|
WriteBones();
|
||||||
WriteSlots();
|
WriteSlots();
|
||||||
WriteIK();
|
WriteIK();
|
||||||
|
|||||||
Reference in New Issue
Block a user