mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Speed up signal disconnects in the editor
This commit is contained in:
parent
5950fca36c
commit
abfc63b483
4 changed files with 22 additions and 4 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue