diff options
author | Ricardo Buring <ricardo.buring@gmail.com> | 2022-02-28 22:25:45 +0100 |
---|---|---|
committer | Ricardo Buring <ricardo.buring@gmail.com> | 2022-02-28 22:25:45 +0100 |
commit | cb5bc58e81ad42def9ae9ab5075d6b754f3d9e96 (patch) | |
tree | c53c7b4e1f334f85e4790d783487b8846ed09520 /scene/2d/joint_2d.cpp | |
parent | 9e100c3e7a38fa0a8338809729e4677e5c8e8edb (diff) |
Joint2D and Joint3D: make set_exclude_nodes_from_collision respect signals
Diffstat (limited to 'scene/2d/joint_2d.cpp')
-rw-r--r-- | scene/2d/joint_2d.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scene/2d/joint_2d.cpp b/scene/2d/joint_2d.cpp index 623e643333..c2773191ea 100644 --- a/scene/2d/joint_2d.cpp +++ b/scene/2d/joint_2d.cpp @@ -190,6 +190,9 @@ void Joint2D::set_exclude_nodes_from_collision(bool p_enable) { if (exclude_from_collision == p_enable) { return; } + if (is_configured()) { + _disconnect_signals(); + } _update_joint(true); exclude_from_collision = p_enable; _update_joint(); |