From ec6ccdbd9110c00d745e8ed7fb20392d69133ee4 Mon Sep 17 00:00:00 2001 From: ww-rm Date: Mon, 3 Mar 2025 21:40:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SpineViewer/Dialogs/OpenSpineDialog.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/SpineViewer/Dialogs/OpenSpineDialog.cs b/SpineViewer/Dialogs/OpenSpineDialog.cs index 0bfb95a..1eeee7e 100644 --- a/SpineViewer/Dialogs/OpenSpineDialog.cs +++ b/SpineViewer/Dialogs/OpenSpineDialog.cs @@ -54,6 +54,10 @@ namespace SpineViewer.Dialogs MessageBox.Show($"{skelPath}", "skel文件不存在", MessageBoxButtons.OK, MessageBoxIcon.Information); return; } + else + { + skelPath = Path.GetFullPath(skelPath); + } if (string.IsNullOrEmpty(atlasPath)) { @@ -64,6 +68,10 @@ namespace SpineViewer.Dialogs MessageBox.Show($"{atlasPath}", "atlas文件不存在", MessageBoxButtons.OK, MessageBoxIcon.Information); return; } + else + { + atlasPath = Path.GetFullPath(atlasPath); + } SkelPath = skelPath; AtlasPath = atlasPath;