Repository navigation
fix: color/gradient dialog edits the parameter that opened itself - #3373
Merged
Merged
Conversation
Contributor
Author
|
If a 1.4.6 will ever be released, backport this PR. |
Collaborator
|
I do not know if this is important, but it changes the current behavior: Before: color-before.mp4After: color-after.mp4 |
Contributor
Author
|
It works like that before just by coincidence: there is a layer parameter of color type value at same tree path. |
ice0
reviewed
Oct 19, 2024
ice0
previously approved these changes
Oct 19, 2024
Here we prevent to emit signal_edited_ for Color and Gradient dialog windows when presented by Parameter Panel. Those dialogs may be opened by a cell and try to update the parameter value related to another one, as it just remembered its parameter tree path. Reproducible steps: 1. Create a region layer 2. Create an outline layer 3. Click on color parameter to edit it 4. Without closing color dialog, select the region layer instead 5. Try to edit the color in dialog 6. Error Message appears fix synfig#3288
`protected` instead of `public`
If user opens Color dialog for editing a layer parameter, deletes this layer while Color dialog is still open and keep using the dialog for color changing, the Undo history is filled with useless color changes...
ice0
approved these changes
Oct 20, 2024
Collaborator
|
Merged. Thank you! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Here we prevent to emit signal_edited_ for Color and Gradient dialog
windows when presented by Parameter Panel.
Those dialogs may be opened by a cell and try to update the parameter
value related to another one, as it just remembered its parameter tree
path.
Reproducible steps:
fix #3288