Dont include editor modules in auto generated git plugin pulling.

This commit is contained in:
Chandler Cox
2024-01-22 18:03:14 -06:00
parent 1094abce5a
commit ce658acb22

View File

@@ -775,8 +775,12 @@ namespace FlaxEditor.Windows
var pluginModuleScriptPath = Path.Combine(subDir, pluginModuleName + ".Build.cs");
if (File.Exists(pluginModuleScriptPath))
{
gameScriptContents = gameScriptContents.Insert(insertLocation, $"\n options.PublicDependencies.Add(\"{pluginModuleName}\");");
modifiedAny = true;
var text = await File.ReadAllTextAsync(pluginModuleScriptPath);
if (!text.Contains("GameEditorModule", StringComparison.OrdinalIgnoreCase))
{
gameScriptContents = gameScriptContents.Insert(insertLocation, $"\n options.PublicDependencies.Add(\"{pluginModuleName}\");");
modifiedAny = true;
}
}
}