Merge pull request #118575 from DeeJayLSP/gdtype-name-hierarchy

Exchange use of `ClassDB::is_parent_class()` with `Object::is_class()` where possible
This commit is contained in:
Thaddeus Crews
2026-06-19 15:09:27 -05:00
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));