diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-12-16 00:31:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-16 00:31:26 +0100 |
commit | f18f2740da9cce7383c2aa41fe8d081d56c8b6cf (patch) | |
tree | 4e9a66fa4b1c75bb9a194f5c5cd6b1026261485d | |
parent | c4b4e69cd9766e14730fe53fdb4330ebec34e3e0 (diff) | |
parent | 17e03c29d68f450634a8b8dcd2f2a46555d7a3d3 (diff) |
Merge pull request #70131 from rune-scape/preload-type-regression
Fix preload type regression
-rw-r--r-- | modules/gdscript/gdscript_analyzer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_analyzer.cpp b/modules/gdscript/gdscript_analyzer.cpp index 4da346b1df..30ac1f29b1 100644 --- a/modules/gdscript/gdscript_analyzer.cpp +++ b/modules/gdscript/gdscript_analyzer.cpp @@ -4027,7 +4027,8 @@ GDScriptParser::DataType GDScriptAnalyzer::type_from_variant(const Variant &p_va found = found->get_member(E).m_class; } - result = found->get_datatype(); + result.class_type = found; + result.script_path = ref->get_parser()->script_path; } else { result.kind = GDScriptParser::DataType::SCRIPT; result.native_type = scr->get_instance_base_type(); |