Skip to content

Fix(Canvas): Retain layer opacity on mode change.#8879

Open
DustyShoe wants to merge 1 commit intoinvoke-ai:mainfrom
DustyShoe:Fix(Canvas)/Retain-layer-opacity-on-mode-switch
Open

Fix(Canvas): Retain layer opacity on mode change.#8879
DustyShoe wants to merge 1 commit intoinvoke-ai:mainfrom
DustyShoe:Fix(Canvas)/Retain-layer-opacity-on-mode-switch

Conversation

@DustyShoe
Copy link
Collaborator

@DustyShoe DustyShoe commented Feb 16, 2026

Summary

This PR fixes canvas layer opacity desync after mode/tab switches. Layer opacity value in state was correct, but visual opacity could remain fully opaque after returning to canvas.

QA Instructions

  1. Open Canvas, add a raster layer, set opacity to ~30%.
  2. Switch to Generate or Upscale tab, then back to Canvas.
  3. Confirm the layer still looks ~30% opacity (not fully opaque).
  4. Repeat with multiple raster layers at different opacities.
  5. Toggle layer visibility off/on and confirm opacity remains correct.
  6. Optional stress check: switch tabs quickly several times and verify no visual opacity reset.

Merge Plan

Simple merge.

Checklist

  • The PR has a short but descriptive title, suitable for a changelog
  • Tests added / updated (if applicable)
  • ❗Changes to a redux slice have a corresponding migration
  • Documentation added / updated (if applicable)
  • Updated What's New copy (if doing a release after this PR)

Copy link
Collaborator

@dunkeroni dunkeroni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works. Good catch.

To other reviewers: this error only happens for me when I have a raster layer with transparency and different raster layer at full opacity is focused when switching to another tab and back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend PRs that change frontend files v6.13.x

Projects

Status: 6.13.x

Development

Successfully merging this pull request may close these issues.

3 participants