mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Revert "Replace many uses of is_class with derives_from."
This reverts commit 78b743cf4a.
This commit is contained in:
@@ -1439,7 +1439,7 @@ bool ResourceLoader::add_custom_resource_format_loader(const String &script_path
|
||||
|
||||
Ref<Resource> res = ResourceLoader::load(script_path);
|
||||
ERR_FAIL_COND_V(res.is_null(), false);
|
||||
ERR_FAIL_COND_V(!res->derives_from<Script>(), false);
|
||||
ERR_FAIL_COND_V(!res->is_class("Script"), false);
|
||||
|
||||
Ref<Script> s = res;
|
||||
StringName ibt = s->get_instance_base_type();
|
||||
|
||||
Reference in New Issue
Block a user