1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-08 12:40:44 +00:00

Revert "Replace many uses of is_class with derives_from."

This reverts commit 78b743cf4a.
This commit is contained in:
A Thousand Ships
2025-09-25 13:45:49 +02:00
parent 6e4e8072e1
commit bd65cfa876
43 changed files with 82 additions and 82 deletions

View File

@@ -2220,7 +2220,7 @@ Error ResourceFormatSaverBinaryInstance::save(const String &p_path, const Ref<Re
#ifdef REAL_T_IS_DOUBLE
format_flags |= FORMAT_FLAG_REAL_T_IS_DOUBLE;
#endif
if (!p_resource->derives_from<PackedScene>()) {
if (!p_resource->is_class("PackedScene")) {
Ref<Script> s = p_resource->get_script();
if (s.is_valid()) {
script_class = s->get_global_name();