Sfoglia il codice sorgente

Merge pull request #58250 from V-Sekai/typed_array_fix

Rémi Verschelde 3 anni fa
parent
commit
a4195a3ea8
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      modules/gdscript/gdscript_compiler.cpp

+ 2 - 0
modules/gdscript/gdscript_compiler.cpp

@@ -132,11 +132,13 @@ GDScriptDataType GDScriptCompiler::_gdtype_from_datatype(const GDScriptParser::D
 					result.kind = GDScriptDataType::GDSCRIPT;
 					result.script_type = script.ptr();
 					result.native_type = script->get_instance_base_type();
+					result.builtin_type = p_datatype.builtin_type;
 				} else {
 					result.kind = GDScriptDataType::GDSCRIPT;
 					result.script_type_ref = GDScriptCache::get_shallow_script(p_datatype.script_path, main_script->path);
 					result.script_type = result.script_type_ref.ptr();
 					result.native_type = p_datatype.native_type;
+					result.builtin_type = p_datatype.builtin_type;
 				}
 			}
 		} break;