-
-
Notifications
You must be signed in to change notification settings - Fork 97
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
Add methods to TreeItem
to freely move them between parents
#3607
Comments
TreeItem
to freely move them between parents
That's not necessarily a good thing. We don't want to create an assumption that |
Continuing from godotengine/godot#46773#issuecomment-979779187, I think that there are 2 different issues described in the OP:
The first one is a limitation that I didn't consider in godotengine/godot#46773, and it should be fixed. However, a method that puts the item as the last children is quite slow, especially when there are several children (TBH, it can be optimized by using the existing TreeItem children cache, but that cache is not always available). The second one is a consistency vs usability issue. Not only the |
Agree, maybe only need a new |
Describe the project you are working on
A simple no-game application
Describe the problem or limitation you are having in your project
I want change my tree like this:
-->
In current situation, I must add a temp node for NodeB, then move Child, then delete the temp node.
Describe the feature / enhancement and how it helps to overcome the problem or limitation
I think should remove
move_after
andmove_before
method for TreeItem, replece this byadd_child
andmove_child
,where was two advantages:
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
/
If this enhancement will not be used often, can it be worked around with a few lines of script?
This can be worked arouond, but it not particulary convenient
Is there a reason why this should be core and not an add-on in the asset library?
/
The text was updated successfully, but these errors were encountered: