Merge pull request #52885 from David1Socha/3.x_fix_connection_comparison
Update connection comparison operator to compare connection sources based on instance ID instead of by pointer
This commit is contained in:
commit
75161d247b
1 changed files with 1 additions and 1 deletions
|
@ -357,7 +357,7 @@ bool Object::Connection::operator<(const Connection &p_conn) const {
|
|||
return signal < p_conn.signal;
|
||||
}
|
||||
} else {
|
||||
return source < p_conn.source;
|
||||
return source->get_instance_id() < p_conn.source->get_instance_id();
|
||||
}
|
||||
}
|
||||
Object::Connection::Connection(const Variant &p_variant) {
|
||||
|
|
Loading…
Add table
Reference in a new issue