Merge pull request #44245 from nekomatata/gdscript-regression-fix
Fix regression in gdscript initialization
This commit is contained in:
commit
1cd0d711c5
1 changed files with 2 additions and 1 deletions
|
@ -136,7 +136,8 @@ GDScriptDataType GDScriptCompiler::_gdtype_from_datatype(const GDScriptParser::D
|
||||||
} break;
|
} break;
|
||||||
case GDScriptParser::DataType::GDSCRIPT: {
|
case GDScriptParser::DataType::GDSCRIPT: {
|
||||||
result.kind = GDScriptDataType::GDSCRIPT;
|
result.kind = GDScriptDataType::GDSCRIPT;
|
||||||
result.script_type = Ref<Script>(p_datatype.script_type).ptr();
|
result.script_type_ref = Ref<Script>(p_datatype.script_type);
|
||||||
|
result.script_type = result.script_type_ref.ptr();
|
||||||
result.native_type = result.script_type->get_instance_base_type();
|
result.native_type = result.script_type->get_instance_base_type();
|
||||||
} break;
|
} break;
|
||||||
case GDScriptParser::DataType::CLASS: {
|
case GDScriptParser::DataType::CLASS: {
|
||||||
|
|
Loading…
Reference in a new issue