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

Fix Editor Description tooltip not changing until scene is reopened #66266

Merged

Conversation

Calinou
Copy link
Member

@Calinou Calinou commented Sep 22, 2022

You still need to select another node to see the tooltip updated first, but you no longer need to save and reopen the scene to view the updated tooltip.

The solution is based on #61531 (thanks @Dentyr), but is only applied in the editor as it's not needed outside the editor.

This closes #61521.

@Calinou Calinou requested a review from a team as a code owner September 22, 2022 16:30
@Calinou Calinou added bug topic:editor cherrypick:3.x Considered for cherry-picking into a future 3.x release cherrypick:3.5 Considered for cherry-picking into a future 3.5.x release labels Sep 22, 2022
@Calinou Calinou added this to the 4.0 milestone Sep 22, 2022
@akien-mga
Copy link
Member

akien-mga commented Sep 22, 2022

Might be worth guarding against the case where the string doesn't change, to prevent needlessly updating the tree.

This sounds like it would update the tree for every node in a given scene when opening the scene. If you only handle nodes with a non-empty description it's a bit better, though still seems a bit overkill when many nodes have descriptions. Queuing an update on SceneTree for the next frame might be better.

@reduz
Copy link
Member

reduz commented Jan 19, 2023

A bit overkill, but I guess ok for what it is

scene/main/node.cpp Outdated Show resolved Hide resolved
You still need to select another node to see the tooltip updated first,
but you no longer need to save and reopen the scene to view the updated
tooltip.
@Calinou Calinou force-pushed the editor-description-fix-tooltip-update branch from 7984c51 to 9f026d5 Compare January 29, 2023 23:18
@akien-mga akien-mga merged commit 080c795 into godotengine:master Jan 30, 2023
@akien-mga
Copy link
Member

Thanks!

@Calinou Calinou deleted the editor-description-fix-tooltip-update branch February 9, 2023 01:02
@akien-mga akien-mga removed the cherrypick:3.5 Considered for cherry-picking into a future 3.5.x release label Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug cherrypick:3.x Considered for cherry-picking into a future 3.x release topic:editor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Node's editor description property tooltip is only updated when the scene is opened
3 participants