From 82bee3f99398372a484f3399dc3b9245dd4c28b2 Mon Sep 17 00:00:00 2001 From: PouleyKetchoupp Date: Sun, 10 Nov 2019 06:59:44 +0100 Subject: [PATCH 01/53] Added has_signal method for Object (cherry picked from commit 258d91f883eb3db0ebc709f4f7e43ccb6948a7fc) --- core/object.cpp | 20 ++++++++++++++++++++ core/object.h | 1 + doc/classes/Object.xml | 11 ++++++++++- 3 files changed, 31 insertions(+), 1 deletion(-) diff --git a/core/object.cpp b/core/object.cpp index 21a3b2cc6c8..e504533faff 100644 --- a/core/object.cpp +++ b/core/object.cpp @@ -1353,6 +1353,25 @@ Array Object::_get_incoming_connections() const { return ret; } +bool Object::has_signal(const StringName &p_name) const { + if (!script.is_null()) { + Ref