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
+1 -1
View File
@@ -114,7 +114,7 @@ bool GDScriptDataType::is_type(const Variant &p_variant, bool p_allow_implicit_c
return !was_freed;
}
if (!ClassDB::is_parent_class(obj->get_class_name(), native_type)) {
if (!obj->is_class(native_type)) {
return false;
}
return true;