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

Tree Control Node does not update to show deleted TreeItems immediately #69553

Closed
ghost opened this issue Dec 4, 2022 · 3 comments
Closed

Tree Control Node does not update to show deleted TreeItems immediately #69553

ghost opened this issue Dec 4, 2022 · 3 comments
Milestone

Comments

@ghost
Copy link

ghost commented Dec 4, 2022

Godot version

3.5.1

System information

Windows 11

Issue description

After freeing TreeItem it still is there in Tree.

Steps to reproduce

extends Tree


func _ready() -> void:
	var root := create_item()
	var child := create_item(root)
	child.set_text(0, "delete")
	yield(get_tree().create_timer(0.1), "timeout")
	child.free()

Minimal reproduction project

N/A

@ghost
Copy link
Author

ghost commented Dec 4, 2022

Well, calling TreeItem.remove_child() updates it.

@Hiiamwilliam
Copy link

If you call update (which is from CanvasItem) it should redraw correctly after freeing.

@akien-mga
Copy link
Member

Fixed by #69569.

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

3 participants