-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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 deleting Sprite2D with region, undoing #84349
Comments
I can confirm this on 4.2.beta 6afd320 (Linux). I can't reproduce this on 4.1.2-4.2.dev3, but I can on 4.2.dev4 and later. I bisected the regression to 4b7d0c8. cc @YuriSizov On 4.2.dev3, I get these errors when following the steps, but no crash:
Backtrace:
|
For the record, this has nothing to do with converting to mesh. It's only related to removing the original node (Sprite2D) and then undoing. Since undoing doesn't somehow restore the original node but rather recreates it, the region editor has no idea about it, its context is lost, the reference is empty. And so it crashes. This was likely always a problem, just didn't manifest this way. |
Godot version
v4.2.beta4.official [93cdacb]
System information
Windows 10
Issue description
When I convert Sprite2D to mesh/polygon via sprite tools, undoing crashes the editor. It's not a big problem as it requires quite specific steps to trigger and converting a sprite with region doesn't seem to be fully supported anyway.
Error message:
Steps to reproduce
Convert to MeshInstance2D or Polygon2DDelete the Sprite2DMinimal reproduction project
N/A, happens on a clean project.
The text was updated successfully, but these errors were encountered: