mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
GDScript: Fix conversions from native members accessed by identifier
This commit is contained in:
parent
3863199ab9
commit
281c8c75d3
3 changed files with 14 additions and 1 deletions
|
@ -242,7 +242,7 @@ GDScriptCodeGenerator::Address GDScriptCompiler::_parse_expression(CodeGen &code
|
|||
// Try class members.
|
||||
if (_is_class_member_property(codegen, identifier)) {
|
||||
// Get property.
|
||||
GDScriptCodeGenerator::Address temp = codegen.add_temporary(); // TODO: Could get the type of the class member here.
|
||||
GDScriptCodeGenerator::Address temp = codegen.add_temporary(_gdtype_from_datatype(p_expression->get_datatype(), codegen.script));
|
||||
gen->write_get_member(temp, identifier);
|
||||
return temp;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue