-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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
Crash when the skeleton of a Polygon2d was removed #20677
Comments
I can't reproduce. I added some extra checks but still not sure how this could cause a crash. More information or trying to reproduce the crash with a more recent build would be appreciated. |
I can reproduce it with the provided project and the steps to reproduce (click the "Broom" icon of Polygon2D's Skeleton property in the inspector). Stacktrace:
|
In Polygon2D's draw notification handling: Line 215 in 94403af
It's guarded by this: Lines 197 to 198 in 94403af
Is it fine to just check the skeleton node here or should we be clearing the bone weights when the skeleton is unset? |
Godot version:
v3.1.dev.calinou.6c569c9
OS/device including version:
Ubuntu 18.04
Issue description:
Godot Engine crashed and close when the skeleton of a Polygon2d was removed,
Steps to reproduce:
Add a Skeleton2d to a Polygon2d, sync bones, then paint vertex and then try to remove the skeleton clicking the "Broom" icon of Polygon2D's Skeleton property in the inspector.
Minimal reproduction project:
polygon2d.zip
The text was updated successfully, but these errors were encountered: