mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Replace many uses of is_class with derives_from.
This commit is contained in:
@@ -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->is_class("PackedScene")) {
|
||||
if (!p_resource->derives_from<PackedScene>()) {
|
||||
Ref<Script> s = p_resource->get_script();
|
||||
if (s.is_valid()) {
|
||||
script_class = s->get_global_name();
|
||||
|
||||
Reference in New Issue
Block a user