diff options
author | Juan Linietsky <reduzio@gmail.com> | 2016-06-06 19:55:50 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2016-06-06 19:55:50 -0300 |
commit | 85f4f3927973fa7b106ee274033b1f0180ad4343 (patch) | |
tree | 0ce626a16ded1ac4407b4ef09e3ae8f4d53d74bc /core/object.cpp | |
parent | 955ed0a95f61e14e6c941540b11905a16fb40d00 (diff) | |
download | redot-engine-85f4f3927973fa7b106ee274033b1f0180ad4343.tar.gz |
Added function get_signals_connected_to_this_this()
should help properly implement #5058
Diffstat (limited to 'core/object.cpp')
-rw-r--r-- | core/object.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/object.cpp b/core/object.cpp index bedab63281..cbe24a49f3 100644 --- a/core/object.cpp +++ b/core/object.cpp @@ -1401,6 +1401,13 @@ bool Object::has_persistent_signal_connections() const { return false; } +void Object::get_signals_connected_to_this(List<Connection> *p_connections) const { + + for (const List<Connection>::Element *E=connections.front();E;E=E->next()) { + p_connections->push_back(E->get()); + } +} + Error Object::connect(const StringName& p_signal, Object *p_to_object, const StringName& p_to_method,const Vector<Variant>& p_binds,uint32_t p_flags) { |