Skip to content

Commit

Permalink
Fix preview toggle & apply #52
Browse files Browse the repository at this point in the history
  • Loading branch information
Acly committed Nov 18, 2023
1 parent f6d0dfc commit 00ac67e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ai_diffusion/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ def set_layer_content(self, layer: krita.Node, img: Image, bounds: Bounds):
blank = Image.create(layer_bounds.extent, fill=0)
layer.setPixelData(blank.data, *layer_bounds)
layer.setPixelData(img.data, *bounds)
if layer.visible():
self._doc.refreshProjection()
layer.setVisible(True)
self._doc.refreshProjection()
return layer

def hide_layer(self, layer: krita.Node):
Expand Down

0 comments on commit 00ac67e

Please sign in to comment.