Content re-read through SceneManager.ReloadContent

This commit is contained in:
cthangover committed 2026-10-22 19:14:58 +02:00
1 parent 92d78d07cd
commit 164194ef50
3 files changed
+5 -14

No files matched your search

+1 -1
View File
@@ -582,7 +582,7 @@ namespace Cthangover.Mods.ScenarioStudio.Tests.Live
if (string.IsNullOrEmpty(root) || !Directory.Exists(root))
return;
ModOverlays.Unmount(StudioLayer.Id);
StudioLayer.RefreshContent();
SceneManager.ReloadContent();
Directory.Delete(root, true);
var parent = Path.GetDirectoryName(root);
if (parent != null && Directory.GetFileSystemEntries(parent).Length == 0)