diff options
author | Quentin Guidée <quentin.guidee@gmail.com> | 2022-12-20 14:23:47 -0500 |
---|---|---|
committer | Quentin Guidée <quentin.guidee@gmail.com> | 2022-12-20 14:26:15 -0500 |
commit | d9c05f7fbd61c76a237165c9f691b7ea493bdfe6 (patch) | |
tree | f647f5dd4fe3c237ab1b9b2232e9fa68eb1a30f7 /scene | |
parent | 2a04b18d37de6c6e621db5a9dfd1cd0da5ccb015 (diff) |
Fix double get_singleton()
Signed-off-by: Quentin Guidée <quentin.guidee@gmail.com>
Diffstat (limited to 'scene')
-rw-r--r-- | scene/2d/joint_2d.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/2d/joint_2d.cpp b/scene/2d/joint_2d.cpp index 8de4c281f4..3ec744ff8e 100644 --- a/scene/2d/joint_2d.cpp +++ b/scene/2d/joint_2d.cpp @@ -112,7 +112,7 @@ void Joint2D::_update_joint(bool p_only_free) { ERR_FAIL_COND_MSG(!joint.is_valid(), "Failed to configure the joint."); - PhysicsServer2D::get_singleton()->get_singleton()->joint_set_param(joint, PhysicsServer2D::JOINT_PARAM_BIAS, bias); + PhysicsServer2D::get_singleton()->joint_set_param(joint, PhysicsServer2D::JOINT_PARAM_BIAS, bias); ba = body_a->get_rid(); bb = body_b->get_rid(); @@ -188,7 +188,7 @@ void Joint2D::_notification(int p_what) { void Joint2D::set_bias(real_t p_bias) { bias = p_bias; if (joint.is_valid()) { - PhysicsServer2D::get_singleton()->get_singleton()->joint_set_param(joint, PhysicsServer2D::JOINT_PARAM_BIAS, bias); + PhysicsServer2D::get_singleton()->joint_set_param(joint, PhysicsServer2D::JOINT_PARAM_BIAS, bias); } } |