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
@@ -2036,7 +2036,7 @@ static String _get_dropped_resource_as_member(const Ref<Resource> &p_resource, b
path = ResourceUID::get_singleton()->id_to_text(id);
}
}
const bool is_script = ClassDB::is_parent_class(p_resource->get_class(), "Script");
const bool is_script = p_resource->is_class(SNAME("Script"));
if (!p_create_field) {
return vformat("preload(%s)", _quote_drop_data(path));