Skip to content

Commit

Permalink
Merge pull request #26 from Haruma-K/feature/fix_bug
Browse files Browse the repository at this point in the history
Fixed 'ArgumentException'
  • Loading branch information
Haruma-K authored Jan 10, 2025
2 parents 3973bf8 + 43d991e commit 32b2221
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,9 @@ public void Reload()
_paletteEditorWindow?.Reload();
_themeEditorWindow?.Reload();

var activeScene = SceneManager.GetActiveScene().path;
EditorSceneManager.OpenScene(activeScene);
var activeScenePath = SceneManager.GetActiveScene().path;
if (!string.IsNullOrEmpty(activeScenePath)) // Open the scene only if the scene is saved as an asset = if there is a path
EditorSceneManager.OpenScene(activeScenePath);
}

public static UPaletteEditorApplication RequestInstance()
Expand Down

0 comments on commit 32b2221

Please sign in to comment.