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:
Lukas Tenbrink 2025-04-08 23:25:05 +02:00
parent 4248411baf
commit fbe64ffb45
5 changed files with 17 additions and 15 deletions

View file

@ -105,7 +105,7 @@ void GDScriptDocGen::_doctype_from_gdtype(const GDType &p_gdtype, String &r_type
return;
case GDType::SCRIPT:
if (p_gdtype.is_meta_type) {
r_type = p_gdtype.script_type.is_valid() ? p_gdtype.script_type->get_class() : Script::get_class_static();
r_type = p_gdtype.script_type.is_valid() ? p_gdtype.script_type->get_class_name() : Script::get_class_static();
return;
}
if (p_gdtype.script_type.is_valid()) {