Make query checks less agressive, fixes #24694

This commit is contained in:
Juan Linietsky
2019-03-02 08:48:13 -03:00
parent a42549b8f7
commit b84b015225
4 changed files with 18 additions and 25 deletions

View File

@ -428,8 +428,8 @@ void Area2D::set_monitorable(bool p_enable) {
if (locked || (is_inside_tree() && Physics2DServer::get_singleton()->is_flushing_queries())) {
ERR_EXPLAIN("Function blocked during in/out signal. Use set_deferred(\"monitorable\",true/false)");
ERR_FAIL();
}
ERR_FAIL_COND(locked || Physics2DServer::get_singleton()->is_flushing_queries());
if (p_enable == monitorable)
return;