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

Fixed EditorPropertyText change signal emission. #44326

Merged
merged 1 commit into from
Dec 19, 2020

Conversation

AndreaCatania
Copy link
Contributor

@AndreaCatania AndreaCatania commented Dec 12, 2020

The EditorPropertyText is not properly emitting the emit_change signal.

The signal is emitted with the variable changing = true. You can see that the if (updating) { statement is already preventing such signal to be executed at all while the user is writing; so the correct variable value for changing is false.

Bugsquad edit: Fixes #43238.

@Xrayez
Copy link
Contributor

Xrayez commented Dec 12, 2020

Even though I haven't tested this PR, I think this will likely fix #43238, so would be good to cherry-pick this to 3.2 as well if that's the case!

@AndreaCatania
Copy link
Contributor Author

I did this pr to solve that problem, on my local branch. Glad to see there was already an open issues.

@akien-mga akien-mga added the cherrypick:3.x Considered for cherry-picking into a future 3.x release label Dec 19, 2020
@akien-mga akien-mga merged commit bb53e35 into godotengine:master Dec 19, 2020
@akien-mga
Copy link
Member

Thanks!

@AndreaCatania AndreaCatania deleted the AndreaCatania-patch-5 branch December 19, 2020 12:25
@akien-mga
Copy link
Member

akien-mga commented Dec 29, 2020

Cherry-picked for 3.2.4.

@akien-mga akien-mga removed the cherrypick:3.x Considered for cherry-picking into a future 3.x release label Dec 29, 2020
@akien-mga
Copy link
Member

akien-mga commented Jan 5, 2021

Cherry-picked for 3.2.4.

Reverted before 3.2.4 beta 5 due to #44854.

It's still merged in master which should exhibit #44854.

@akien-mga
Copy link
Member

As discussed in #44982, I'll revert this in master too, and #44982 will reapply those changes, together with the multiline strings editor which was missed here. This changes #44982 from a regression fix to a better bugfix for #43238 and related issues.

@akien-mga
Copy link
Member

Done with 6583ac3.

pouleyKetchoupp added a commit to nekomatata/godot that referenced this pull request Jan 7, 2021
Adds a cache to the inspector in order to update only modified
properties when the property list changes and keep the previous controls
whenever possible.

This allows calls to property_list_changed_notify to trigger inspector
updates without resetting all properties.

Fixes godotengine#43238 (re-applies godotengine#44326, reverted because of regression godotengine#44854)

Also fixes change signal emission for multiline string properties (same as godotengine#44326 but for multiline strings).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Editor inspector not updated on changing properties which use LineEdit for editing
3 participants