Merge pull request #64078 from Nosliwnayr/master
This commit is contained in:
commit
afeb7572e3
@ -248,6 +248,10 @@ void GodotArea2D::call_queries() {
|
|||||||
Callable::CallError ce;
|
Callable::CallError ce;
|
||||||
Variant ret;
|
Variant ret;
|
||||||
monitor_callback.callp((const Variant **)resptr, 5, ret, ce);
|
monitor_callback.callp((const Variant **)resptr, 5, ret, ce);
|
||||||
|
|
||||||
|
if (ce.error != Callable::CallError::CALL_OK) {
|
||||||
|
ERR_PRINT_ONCE("Error calling event callback method " + Variant::get_callable_error_text(monitor_callback, (const Variant **)resptr, 5, ce));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
monitored_bodies.clear();
|
monitored_bodies.clear();
|
||||||
@ -286,6 +290,10 @@ void GodotArea2D::call_queries() {
|
|||||||
Callable::CallError ce;
|
Callable::CallError ce;
|
||||||
Variant ret;
|
Variant ret;
|
||||||
area_monitor_callback.callp((const Variant **)resptr, 5, ret, ce);
|
area_monitor_callback.callp((const Variant **)resptr, 5, ret, ce);
|
||||||
|
|
||||||
|
if (ce.error != Callable::CallError::CALL_OK) {
|
||||||
|
ERR_PRINT_ONCE("Error calling event callback method " + Variant::get_callable_error_text(area_monitor_callback, (const Variant **)resptr, 5, ce));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
monitored_areas.clear();
|
monitored_areas.clear();
|
||||||
|
@ -277,6 +277,10 @@ void GodotArea3D::call_queries() {
|
|||||||
Callable::CallError ce;
|
Callable::CallError ce;
|
||||||
Variant ret;
|
Variant ret;
|
||||||
monitor_callback.callp((const Variant **)resptr, 5, ret, ce);
|
monitor_callback.callp((const Variant **)resptr, 5, ret, ce);
|
||||||
|
|
||||||
|
if (ce.error != Callable::CallError::CALL_OK) {
|
||||||
|
ERR_PRINT_ONCE("Error calling monitor callback method " + Variant::get_callable_error_text(monitor_callback, (const Variant **)resptr, 5, ce));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
monitored_bodies.clear();
|
monitored_bodies.clear();
|
||||||
@ -315,6 +319,10 @@ void GodotArea3D::call_queries() {
|
|||||||
Callable::CallError ce;
|
Callable::CallError ce;
|
||||||
Variant ret;
|
Variant ret;
|
||||||
area_monitor_callback.callp((const Variant **)resptr, 5, ret, ce);
|
area_monitor_callback.callp((const Variant **)resptr, 5, ret, ce);
|
||||||
|
|
||||||
|
if (ce.error != Callable::CallError::CALL_OK) {
|
||||||
|
ERR_PRINT_ONCE("Error calling area monitor callback method " + Variant::get_callable_error_text(area_monitor_callback, (const Variant **)resptr, 5, ce));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
monitored_areas.clear();
|
monitored_areas.clear();
|
||||||
|
Loading…
Reference in New Issue
Block a user