mirror of
https://github.com/godotengine/godot.git
synced 2025-02-17 22:43:01 +08:00
Restore signal locking, for some reason missing.
This commit is contained in:
parent
4bb5fbafcb
commit
22637beb2e
@ -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);
|
MessageQueue::get_singleton()->push_call(target->get_instance_id(), c.method, args, argc, true);
|
||||||
} else {
|
} else {
|
||||||
Variant::CallError ce;
|
Variant::CallError ce;
|
||||||
|
s->lock++;
|
||||||
target->call(c.method, args, argc, ce);
|
target->call(c.method, args, argc, ce);
|
||||||
|
s->lock--;
|
||||||
|
|
||||||
if (ce.error != Variant::CallError::CALL_OK) {
|
if (ce.error != Variant::CallError::CALL_OK) {
|
||||||
#ifdef DEBUG_ENABLED
|
#ifdef DEBUG_ENABLED
|
||||||
|
Loading…
Reference in New Issue
Block a user