|
@@ -1517,7 +1517,7 @@ void Variant::set_named(const StringName &p_index, const Variant &p_value, bool
|
|
#ifdef DEBUG_ENABLED
|
|
#ifdef DEBUG_ENABLED
|
|
if (unlikely(!obj)) {
|
|
if (unlikely(!obj)) {
|
|
if (ScriptDebugger::get_singleton() && _get_obj().rc && !ObjectDB::get_instance(_get_obj().rc->instance_id)) {
|
|
if (ScriptDebugger::get_singleton() && _get_obj().rc && !ObjectDB::get_instance(_get_obj().rc->instance_id)) {
|
|
- WARN_PRINT("Attempted set on a deleted object.");
|
|
|
|
|
|
+ ERR_PRINT("Attempted set on a deleted object.");
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
@@ -1685,7 +1685,7 @@ Variant Variant::get_named(const StringName &p_index, bool *r_valid) const {
|
|
if (r_valid)
|
|
if (r_valid)
|
|
*r_valid = false;
|
|
*r_valid = false;
|
|
if (ScriptDebugger::get_singleton() && _get_obj().rc && !ObjectDB::get_instance(_get_obj().rc->instance_id)) {
|
|
if (ScriptDebugger::get_singleton() && _get_obj().rc && !ObjectDB::get_instance(_get_obj().rc->instance_id)) {
|
|
- WARN_PRINT("Attempted get on a deleted object.");
|
|
|
|
|
|
+ ERR_PRINT("Attempted get on a deleted object.");
|
|
}
|
|
}
|
|
return Variant();
|
|
return Variant();
|
|
}
|
|
}
|
|
@@ -2170,7 +2170,7 @@ void Variant::set(const Variant &p_index, const Variant &p_value, bool *r_valid)
|
|
#ifdef DEBUG_ENABLED
|
|
#ifdef DEBUG_ENABLED
|
|
valid = false;
|
|
valid = false;
|
|
if (ScriptDebugger::get_singleton() && _get_obj().rc && !ObjectDB::get_instance(_get_obj().rc->instance_id)) {
|
|
if (ScriptDebugger::get_singleton() && _get_obj().rc && !ObjectDB::get_instance(_get_obj().rc->instance_id)) {
|
|
- WARN_PRINT("Attempted set on a deleted object.");
|
|
|
|
|
|
+ ERR_PRINT("Attempted set on a deleted object.");
|
|
}
|
|
}
|
|
#endif
|
|
#endif
|
|
return;
|
|
return;
|
|
@@ -2540,7 +2540,7 @@ Variant Variant::get(const Variant &p_index, bool *r_valid) const {
|
|
#ifdef DEBUG_ENABLED
|
|
#ifdef DEBUG_ENABLED
|
|
valid = false;
|
|
valid = false;
|
|
if (ScriptDebugger::get_singleton() && _get_obj().rc && !ObjectDB::get_instance(_get_obj().rc->instance_id)) {
|
|
if (ScriptDebugger::get_singleton() && _get_obj().rc && !ObjectDB::get_instance(_get_obj().rc->instance_id)) {
|
|
- WARN_PRINT("Attempted get on a deleted object.");
|
|
|
|
|
|
+ ERR_PRINT("Attempted get on a deleted object.");
|
|
}
|
|
}
|
|
#endif
|
|
#endif
|
|
return Variant();
|
|
return Variant();
|
|
@@ -2603,7 +2603,7 @@ bool Variant::in(const Variant &p_index, bool *r_valid) const {
|
|
*r_valid = false;
|
|
*r_valid = false;
|
|
}
|
|
}
|
|
if (ScriptDebugger::get_singleton() && _get_obj().rc && !ObjectDB::get_instance(_get_obj().rc->instance_id)) {
|
|
if (ScriptDebugger::get_singleton() && _get_obj().rc && !ObjectDB::get_instance(_get_obj().rc->instance_id)) {
|
|
- WARN_PRINT("Attempted 'in' on a deleted object.");
|
|
|
|
|
|
+ ERR_PRINT("Attempted 'in' on a deleted object.");
|
|
}
|
|
}
|
|
#endif
|
|
#endif
|
|
return false;
|
|
return false;
|
|
@@ -2866,7 +2866,7 @@ void Variant::get_property_list(List<PropertyInfo> *p_list) const {
|
|
if (unlikely(!obj)) {
|
|
if (unlikely(!obj)) {
|
|
#ifdef DEBUG_ENABLED
|
|
#ifdef DEBUG_ENABLED
|
|
if (ScriptDebugger::get_singleton() && _get_obj().rc && !ObjectDB::get_instance(_get_obj().rc->instance_id)) {
|
|
if (ScriptDebugger::get_singleton() && _get_obj().rc && !ObjectDB::get_instance(_get_obj().rc->instance_id)) {
|
|
- WARN_PRINT("Attempted get property list on a deleted object.");
|
|
|
|
|
|
+ ERR_PRINT("Attempted get property list on a deleted object.");
|
|
}
|
|
}
|
|
#endif
|
|
#endif
|
|
return;
|
|
return;
|
|
@@ -2944,7 +2944,7 @@ bool Variant::iter_init(Variant &r_iter, bool &valid) const {
|
|
if (unlikely(!obj)) {
|
|
if (unlikely(!obj)) {
|
|
valid = false;
|
|
valid = false;
|
|
if (ScriptDebugger::get_singleton() && _get_obj().rc && !ObjectDB::get_instance(_get_obj().rc->instance_id)) {
|
|
if (ScriptDebugger::get_singleton() && _get_obj().rc && !ObjectDB::get_instance(_get_obj().rc->instance_id)) {
|
|
- WARN_PRINT("Attempted iteration start on a deleted object.");
|
|
|
|
|
|
+ ERR_PRINT("Attempted iteration start on a deleted object.");
|
|
}
|
|
}
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
@@ -3111,7 +3111,7 @@ bool Variant::iter_next(Variant &r_iter, bool &valid) const {
|
|
if (unlikely(!obj)) {
|
|
if (unlikely(!obj)) {
|
|
valid = false;
|
|
valid = false;
|
|
if (ScriptDebugger::get_singleton() && _get_obj().rc && !ObjectDB::get_instance(_get_obj().rc->instance_id)) {
|
|
if (ScriptDebugger::get_singleton() && _get_obj().rc && !ObjectDB::get_instance(_get_obj().rc->instance_id)) {
|
|
- WARN_PRINT("Attempted iteration check next on a deleted object.");
|
|
|
|
|
|
+ ERR_PRINT("Attempted iteration check next on a deleted object.");
|
|
}
|
|
}
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
@@ -3269,7 +3269,7 @@ Variant Variant::iter_get(const Variant &r_iter, bool &r_valid) const {
|
|
if (unlikely(!obj)) {
|
|
if (unlikely(!obj)) {
|
|
r_valid = false;
|
|
r_valid = false;
|
|
if (ScriptDebugger::get_singleton() && _get_obj().rc && !ObjectDB::get_instance(_get_obj().rc->instance_id)) {
|
|
if (ScriptDebugger::get_singleton() && _get_obj().rc && !ObjectDB::get_instance(_get_obj().rc->instance_id)) {
|
|
- WARN_PRINT("Attempted iteration get next on a deleted object.");
|
|
|
|
|
|
+ ERR_PRINT("Attempted iteration get next on a deleted object.");
|
|
}
|
|
}
|
|
return Variant();
|
|
return Variant();
|
|
}
|
|
}
|