Skip to content

Commit

Permalink
Fix PinJoint2D deferred call error
Browse files Browse the repository at this point in the history
  • Loading branch information
KoBeWi committed Apr 7, 2024
1 parent e5b4ef8 commit 63bff87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scene/2d/physics/joints/joint_2d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ void Joint2D::set_node_a(const NodePath &p_node_a) {
if (Engine::get_singleton()->is_editor_hint()) {
// When in editor, the setter may be called as a result of node rename.
// It happens before the node actually changes its name, which triggers false warning.
callable_mp(this, &Joint2D::_update_joint).call_deferred();
callable_mp(this, &Joint2D::_update_joint).call_deferred(false);
} else {
_update_joint();
}
Expand All @@ -157,7 +157,7 @@ void Joint2D::set_node_b(const NodePath &p_node_b) {

b = p_node_b;
if (Engine::get_singleton()->is_editor_hint()) {
callable_mp(this, &Joint2D::_update_joint).call_deferred();
callable_mp(this, &Joint2D::_update_joint).call_deferred(false);
} else {
_update_joint();
}
Expand Down

0 comments on commit 63bff87

Please sign in to comment.