Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Joint destroy error when using remove_child. #25689

Closed
Gyrth opened this issue Feb 7, 2019 · 6 comments
Closed

Joint destroy error when using remove_child. #25689

Gyrth opened this issue Feb 7, 2019 · 6 comments

Comments

@Gyrth
Copy link

Gyrth commented Feb 7, 2019

Godot version:
3.0.6

OS/device including version:
Windows 10

Issue description:
Error message about joint destroying when only removing_child.

0:00:00:0741 - A body with a joints is destroyed. Please check the implementation in order to destroy the joint before the body.
----------
Type:Warning
Description: 
Time: 0:00:00:0741
C Error: A body with a joints is destroyed. Please check the implementation in order to destroy the joint before the body.
C Source: modules/bullet/rigid_body_bullet.cpp:411
C Function: assert_no_constraints

Steps to reproduce:

  • Create scene with a HingJoint in it.
  • Create level scene which has that HingeJoint scene instanced.
  • remove_child the HingeJoint scene on_ready.

Minimal reproduction project:
joint_issue.zip

@LinuxUserGD
Copy link
Contributor

What happens if you remove_child the joint first?

@LinuxUserGD
Copy link
Contributor

With a "joints"?

@Gyrth
Copy link
Author

Gyrth commented Feb 9, 2019

I don't want to destroy anything, just remove the child from the scenetree.

@PLyczkowski
Copy link

Yup, same here. Reparenting stuff with joints breaks them and throws this error...

@KoBeWi
Copy link
Member

KoBeWi commented Aug 22, 2020

Still valid in 2ba96f0

@pouleyKetchoupp
Copy link
Contributor

Fixed by #44703, closing.

@akien-mga akien-mga added this to the 4.0 milestone Jan 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants