Skip to content

Commit

Permalink
修补类型错误
Browse files Browse the repository at this point in the history
  • Loading branch information
ww-rm committed Dec 19, 2024
1 parent b4aa758 commit 7adb5c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SpineTool/src/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ private void textBox_SkelPath_TextChanged(object sender, EventArgs e)
Spine.Spine newSpine = null;

// 尝试加载
try { newSpine = Spine.Spine.New((string)comboBox_SpineVersion.SelectedValue, skelPath); }
try { newSpine = Spine.Spine.New((Spine.SpineVersion)comboBox_SpineVersion.SelectedValue, skelPath); }
catch (Exception ex) { MessageBox.Show($"{skelPath} 加载失败,资源未修改\n\n{ex}", "Spine 资源加载失败", MessageBoxButtons.OK, MessageBoxIcon.Error); }

// 成功加载新模型
Expand Down Expand Up @@ -162,7 +162,7 @@ private void comboBox_SpineVersion_SelectedValueChanged(object sender, EventArgs
if (!comboBox_SpineVersion.Enabled)
return;

if (comboBox_SpineVersion.SelectedValue is string ver)
if (comboBox_SpineVersion.SelectedValue is Spine.SpineVersion ver)
{
expoterMutex.WaitOne();
for (int i = 0; i < exporterSpines.Length; i++)
Expand Down

0 comments on commit 7adb5c1

Please sign in to comment.