mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Change get_class_static to return StringName.
Use that static `get_class_static` for `_get_class_namev` to avoid duplication.
This commit is contained in:
parent
4248411baf
commit
fbe64ffb45
5 changed files with 17 additions and 15 deletions
|
|
@ -129,7 +129,7 @@ GDScriptDataType GDScriptCompiler::_gdtype_from_datatype(const GDScriptParser::D
|
|||
if (p_handle_metatype && p_datatype.is_meta_type) {
|
||||
result.kind = GDScriptDataType::NATIVE;
|
||||
result.builtin_type = Variant::OBJECT;
|
||||
result.native_type = p_datatype.script_type.is_valid() ? p_datatype.script_type->get_class() : Script::get_class_static();
|
||||
result.native_type = p_datatype.script_type.is_valid() ? p_datatype.script_type->get_class_name() : Script::get_class_static();
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue