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;