1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-10 13:00:37 +00:00

Speed up signal disconnects in the editor

This commit is contained in:
Mike Precup
2025-08-12 15:52:08 -07:00
parent 5950fca36c
commit abfc63b483
4 changed files with 22 additions and 4 deletions

View File

@@ -1522,6 +1522,18 @@ int Object::get_persistent_signal_connection_count() const {
return count;
}
uint32_t Object::get_signal_connection_flags(const StringName &p_name, const Callable &p_callable) const {
OBJ_SIGNAL_LOCK
const SignalData *signal_data = signal_map.getptr(p_name);
if (signal_data) {
const SignalData::Slot *slot = signal_data->slot_map.getptr(p_callable);
if (slot) {
return slot->conn.flags;
}
}
return 0;
}
void Object::get_signals_connected_to_this(List<Connection> *p_connections) const {
OBJ_SIGNAL_LOCK