From 258d91f883eb3db0ebc709f4f7e43ccb6948a7fc Mon Sep 17 00:00:00 2001 From: PouleyKetchoupp Date: Sun, 10 Nov 2019 06:59:44 +0100 Subject: [PATCH] Added has_signal method for Object --- 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 140ee811fe1..188c0ee5c20 100644 --- a/core/object.cpp +++ b/core/object.cpp @@ -1324,6 +1324,25 @@ Array Object::_get_incoming_connections() const { return ret; } +bool Object::has_signal(const StringName &p_name) const { + if (!script.is_null()) { + Ref