From 9637e427053e359b66fb4b7141b0b237fdb53773 Mon Sep 17 00:00:00 2001 From: Bojidar Marinov Date: Tue, 5 Mar 2019 23:19:02 +0200 Subject: Fix enums coming from other classes without preload Fix #19704, fix #26001 --- modules/gdscript/gdscript_parser.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'modules') diff --git a/modules/gdscript/gdscript_parser.cpp b/modules/gdscript/gdscript_parser.cpp index 5619729c13..f005f88d2e 100644 --- a/modules/gdscript/gdscript_parser.cpp +++ b/modules/gdscript/gdscript_parser.cpp @@ -815,6 +815,16 @@ GDScriptParser::Node *GDScriptParser::_parse_expression(Node *p_parent, bool p_s } if (!dependencies_only) { + if (!bfn && ScriptServer::is_global_class(identifier)) { + Ref