summaryrefslogtreecommitdiff
path: root/scene/2d
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-05-23 22:23:53 +0200
committerGitHub <noreply@github.com>2022-05-23 22:23:53 +0200
commitd3268c51adcea118f4a4e0b6677b698f87d22396 (patch)
tree670e3d099977db303cc4cb2c06da47d8fd82f692 /scene/2d
parent3c9cc7914a54dd4cbaf59897d9eb28fed79fb06e (diff)
parent51b229bffa06da41ae1b07957fd8a3b6ac567593 (diff)
Merge pull request #61311 from trollodel/fix_joint3d_warning_crash
Diffstat (limited to 'scene/2d')
-rw-r--r--scene/2d/joint_2d.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/2d/joint_2d.cpp b/scene/2d/joint_2d.cpp
index b527a72de6..7b9f7e14ca 100644
--- a/scene/2d/joint_2d.cpp
+++ b/scene/2d/joint_2d.cpp
@@ -50,6 +50,7 @@ void Joint2D::_disconnect_signals() {
void Joint2D::_body_exit_tree() {
_disconnect_signals();
_update_joint(true);
+ update_configuration_warnings();
}
void Joint2D::_update_joint(bool p_only_free) {
@@ -64,7 +65,6 @@ void Joint2D::_update_joint(bool p_only_free) {
if (p_only_free || !is_inside_tree()) {
PhysicsServer2D::get_singleton()->joint_clear(joint);
warning = String();
- update_configuration_warnings();
return;
}