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

Editor Feature Profile: Only rebuild selected TreeItem and all children when a property is edited #92136

Merged

Conversation

Maran23
Copy link
Contributor

@Maran23 Maran23 commented May 20, 2024

Fixes: #92132

Before, the whole Tree was rebuild when a property was changed.
This is not just a bad idea for performance reasons, but also does not retain any folds that were previously done by the user on any other TreeItem.

This PR improves that by only rebuilding the selected class TreeItem and all children, which improves the performance but also retain any folds that were previously done to other TreeItems.

For that, we now always call _update_profile_tree_from when something was edited instead of _update_selected_profile, which does a full rebuild.

unknown_2024.05.20-02.25.mp4

@Maran23 Maran23 force-pushed the editor-feature-profile-improvements branch from 63038be to 7008111 Compare May 20, 2024 09:33
@akien-mga akien-mga merged commit b44e9b0 into godotengine:master May 20, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants