From decf178033d4176b0955b8efa8a081f7bccd7ed1 Mon Sep 17 00:00:00 2001 From: George Marques Date: Tue, 1 May 2018 11:06:23 -0300 Subject: Enable autoload in editor - Tool scripts will be executed and can be accessed by plugins. - Other script languages can implement add/remove_named_global_constant to make use of this functionality. --- modules/gdscript/gdscript_compiler.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules/gdscript/gdscript_compiler.h') diff --git a/modules/gdscript/gdscript_compiler.h b/modules/gdscript/gdscript_compiler.h index 62aafdbe01..237b0de9e7 100644 --- a/modules/gdscript/gdscript_compiler.h +++ b/modules/gdscript/gdscript_compiler.h @@ -94,6 +94,9 @@ class GDScriptCompiler { HashMap constant_map; Map name_map; +#ifdef TOOLS_ENABLED + Vector named_globals; +#endif int get_name_map_pos(const StringName &p_identifier) { int ret; -- cgit v1.2.3