Merge branch 'module-remove' of https://github.com/Tryibion/FlaxEngine into Tryibion-module-remove

This commit is contained in:
Wojtek Figat
2024-09-11 13:41:30 +02:00
2 changed files with 91 additions and 0 deletions

View File

@@ -703,6 +703,10 @@ namespace FlaxEditor.Modules
}
else
{
// Try to remove module if build.cs file is being deleted
if (item.Path.Contains(".Build.cs", StringComparison.Ordinal) && item.ItemType == ContentItemType.Script)
Editor.Instance.CodeEditing.RemoveModule(item.Path);
// Check if it's an asset
if (item.IsAsset)
{