You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (obj_class != class_name && !ClassDB::is_parent_class(obj_class, class_name)) {
113
+
if (obj_class != class_name && !object->is_class(class_name)) {
114
114
if (p_output_errors) {
115
-
ERR_FAIL_V_MSG(false, vformat("Attempted to %s an object of type '%s' into a %s, which does not inherit from '%s'.", String(p_operation), object->get_class(), where, String(class_name)));
115
+
ERR_FAIL_V_MSG(false, vformat("Attempted to %s an object of type '%s' into a %s, which does not inherit from '%s'.", String(p_operation), obj_class, where, String(class_name)));
if (!ClassDB::is_parent_class(p_this->get_class_name(), top->native->get_name())) {
416
+
if (!p_this->is_class(top->native->get_name())) {
417
417
if (EngineDebugger::is_active()) {
418
418
GDScriptLanguage::get_singleton()->debug_break_parse(_get_debug_path(), 1, "Script inherits from native type '" + String(top->native->get_name()) + "', so it can't be assigned to an object of type: '" + p_this->get_class() + "'");
"Type inherits from native type '" + script_binding.type_name + "', so it can't be instantiated in object of type: '" + p_unmanaged->get_class() + "'.");
0 commit comments