1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-06 12:20:30 +00:00

Add fine-grained disabling of SourceGenerators

This allows manual testing and/or alternate source generators to
provide functionality without conflict.
This commit is contained in:
Alex de la Mare
2023-01-08 12:04:15 +11:00
parent 0291fcd7b6
commit 8ab3295e57
9 changed files with 14 additions and 7 deletions

View File

@@ -13,7 +13,7 @@ namespace Godot.SourceGenerators
public void Execute(GeneratorExecutionContext context)
{
if (context.IsGodotToolsProject())
if (context.IsGodotToolsProject() || context.IsGodotSourceGeneratorDisabled("GodotPluginsInitializer"))
return;
string source =