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 fade in/out not working properly. #1854

Merged
merged 5 commits into from
Jul 8, 2024

Conversation

MrStevns
Copy link
Member

@MrStevns MrStevns commented Jun 29, 2024

Things I bumped into while writing release notes for 0.7.0, although I only found one thing I think is pretty fundamental, which is the fading mechanism that doesn't fade entirely. The rest are things that can be worked around.

if possible it would be nice to have them fixed before the release, since i'm hoping to mention the feature in our release post.

Fixes #1855

@MrStevns MrStevns added the Bug label Jun 29, 2024
@MrStevns MrStevns added this to the 0.7.0 milestone Jun 29, 2024
@J5lx J5lx linked an issue Jun 30, 2024 that may be closed by this pull request
…s open

The reason is that we didn't emit selection changes while moving, which meant that the opacity window would only have the fade in/out option available if you had frames selected before opening it.
When using fade in with initial opacity on 100%
The result would look like:
1. 33%
2. 66%
3. 100%

However I expected:
1. 0%
2. 50%
3. 100%

Similar when using fade out with initial opacity of 100%
1. 100%
2. 66%
3. 33%

I expected
1. 100%
2. 50%
3. 0%
… called

Even though we might have updated other keyframes.
@chchwy
Copy link
Member

chchwy commented Jul 8, 2024

Confirmed the issue was fixed

@chchwy chchwy merged commit 1a3ab9f into pencil2d:release/0.7.0 Jul 8, 2024
10 checks passed
chchwy pushed a commit that referenced this pull request Jul 8, 2024
* Layer Opacity: Fix selection changes would not update while window was open

The reason is that we didn't emit selection changes while moving, which meant that the opacity window would only have the fade in/out option available if you had frames selected before opening it.

* Make none of the buttons in the dialog default enabled

* Fix layer opacity fade in/out would not fade entirely

When using fade in with initial opacity on 100%
The result would look like:
1. 33%
2. 66%
3. 100%

However I expected:
1. 0%
2. 50%
3. 100%

Similar when using fade out with initial opacity of 100%
1. 100%
2. 66%
3. 33%

I expected
1. 100%
2. 50%
3. 0%

* Fix case where if the last frame was null, framesModified wouldn't be called

Even though we might have updated other keyframes.

* Apply small simplification
@MrStevns MrStevns deleted the layer-opacity-fixes branch July 8, 2024 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

Successfully merging this pull request may close these issues.

Layer Opacity dialog: Fade in/out not working properly
2 participants