From cf00f35a8e86321feef9e482fd8ed8db75e35e24 Mon Sep 17 00:00:00 2001 From: Saracen Date: Wed, 11 Sep 2019 06:19:20 +0100 Subject: [PATCH] Allow for constant deceleration to be detected inherited scripts above the immediate parent. --- modules/gdscript/gdscript_parser.cpp | 35 +++++++++++++++++----------- 1 file changed, 21 insertions(+), 14 deletions(-) diff --git a/modules/gdscript/gdscript_parser.cpp b/modules/gdscript/gdscript_parser.cpp index e96bf0238a5..d6c7cc74ca0 100644 --- a/modules/gdscript/gdscript_parser.cpp +++ b/modules/gdscript/gdscript_parser.cpp @@ -5727,28 +5727,35 @@ GDScriptParser::DataType GDScriptParser::_resolve_type(const DataType &p_source, } } - // Still look for class constants in parent script + // Still look for class constants in parent scripts if (!found && (base_type.kind == DataType::GDSCRIPT || base_type.kind == DataType::SCRIPT)) { Ref