diff --git a/Assets/Scripts/LevelEditor/Editor.cs b/Assets/Scripts/LevelEditor/Editor.cs index 3c07e3ede..571d8e4ef 100644 --- a/Assets/Scripts/LevelEditor/Editor.cs +++ b/Assets/Scripts/LevelEditor/Editor.cs @@ -375,13 +375,13 @@ namespace HeavenStudio.Editor } else { - if (saveAs == true) + if (saveAs) { SaveRemixFilePanel(); } else { - if (currentRemixPath == string.Empty || currentRemixPath == null) + if (currentRemixPath is "" or null) { SaveRemixFilePanel(); } @@ -405,6 +405,7 @@ namespace HeavenStudio.Editor if (path != String.Empty) { SaveRemixFile(path); + currentRemixPath = path; } }); }