Joint2D and Joint: make set_exclude_nodes_from_collision respect signals
This commit is contained in:
parent
f197e5eebb
commit
322e3a9567
2 changed files with 7 additions and 1 deletions
|
@ -198,7 +198,9 @@ void Joint2D::set_exclude_nodes_from_collision(bool p_enable) {
|
|||
if (exclude_from_collision == p_enable) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (joint.is_valid()) {
|
||||
_disconnect_signals();
|
||||
}
|
||||
_update_joint(true);
|
||||
exclude_from_collision = p_enable;
|
||||
_update_joint();
|
||||
|
|
|
@ -197,6 +197,10 @@ void Joint::set_exclude_nodes_from_collision(bool p_enable) {
|
|||
if (exclude_from_collision == p_enable) {
|
||||
return;
|
||||
}
|
||||
if (joint.is_valid()) {
|
||||
_disconnect_signals();
|
||||
}
|
||||
_update_joint(true);
|
||||
exclude_from_collision = p_enable;
|
||||
_update_joint();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue