-
-
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
Segfault editting TreeItem immediately after re-adding to Tree. #88889
Comments
Calling .deselect before the node is removed also avoids this crash. |
Confirmed in latest
|
As far as I can tell the issue seems to be that the Adding this code above this line fixes the issue: for (int i = 0; i < tree->selected_item->cells.size(); i++) {
tree->selected_item->cells.write[i].selected = false;
} There might be a cleaner solution though. |
I made it into a PR, in case it happens to be the preferred solution: #88917. |
Tested versions
Godot 4.2.2
System information
Ubuntu 22.04.4 LTS 64-bit
Issue description
Clicking to edit a TreeNode after moving it causes a segfault (signal 11). Selecting another TreeNode will prevent this from happening.
Steps to reproduce
Remove the item from the tree; add the item to the tree; click on the item to edit it.
Minimal reproduction project (MRP)
paste onto a Tree node:
The text was updated successfully, but these errors were encountered: