DrCyanide / cyanic-sd-krita

A Stable Diffusion plugin for Krita, compatible with A1111 and SD.Next
68 stars 4 forks source link

(Low priority) Plugin creates a new page when inpainting #7

Closed Miraihi closed 10 months ago

Miraihi commented 10 months ago

Issue: The plugin (Usually after Krita's first launch) spontaniousely create a new page (512 x 512) when attempting to inpaint. After that it functions normally.

Steps to reproduce:

  1. Launch Krita
  2. Create a new layer for the mask
  3. Draw the mask
  4. Choose the selection/layer
  5. Click "generate"
DrCyanide commented 10 months ago

The extension loaded in the background before any document was created/loaded, and it saved that "no active document" state. When the Generate button was clicked it checked to see if there was an active document, and didn't see one, so it made one. It would've shown up for anyone in any workflow where they use the same mode (Txt2Img, Img2Img, Inpaint) they left off on last time, so it was a slightly more important bug than it first seemed.

Refreshing the active document before generating looks like it's fixed this problem. The change has been pushed.