From 22637beb2ed625c3e43ab75ab5865b57d7470948 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Tue, 17 Dec 2019 10:43:18 -0300 Subject: [PATCH] Restore signal locking, for some reason missing. --- core/object.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/object.cpp b/core/object.cpp index ed3ae4f25d1..8dde03f0e7e 100644 --- a/core/object.cpp +++ b/core/object.cpp @@ -1215,7 +1215,9 @@ Error Object::emit_signal(const StringName &p_name, const Variant **p_args, int MessageQueue::get_singleton()->push_call(target->get_instance_id(), c.method, args, argc, true); } else { Variant::CallError ce; + s->lock++; target->call(c.method, args, argc, ce); + s->lock--; if (ce.error != Variant::CallError::CALL_OK) { #ifdef DEBUG_ENABLED