Exchange use of ClassDB::is_parent_class() with Object::is_class() where possible

This commit is contained in:
DeeJayLSP
2026-04-15 19:21:28 -03:00
parent 3f63a400fa
commit d376b20bef
10 changed files with 19 additions and 21 deletions
@@ -478,7 +478,7 @@ struct GDScriptUtilityFunctionsDefinitions {
GDScriptNativeClass *native_type = Object::cast_to<GDScriptNativeClass>(type_object);
if (native_type) {
*r_ret = ClassDB::is_parent_class(value_object->get_class_name(), native_type->get_name());
*r_ret = value_object->is_class(native_type->get_name());
return;
}