aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVladimir Repin <32306715+mezotaken@users.noreply.github.com>2022-10-10 15:46:48 +0000
committerAUTOMATIC1111 <16777216c@gmail.com>2022-10-10 16:39:24 +0000
commit9d33baba587637815d818e5e641d8f8b74c4900d (patch)
tree180de714863c8d3416466fc3a92452f032434712
parent6c36fe5719a824fa18f6ad3e02727783f095bc5f (diff)
downloadstable-diffusion-webui-gfx803-9d33baba587637815d818e5e641d8f8b74c4900d.tar.gz
stable-diffusion-webui-gfx803-9d33baba587637815d818e5e641d8f8b74c4900d.tar.bz2
stable-diffusion-webui-gfx803-9d33baba587637815d818e5e641d8f8b74c4900d.zip
Always show previous mask and fix extras_send dest
-rw-r--r--modules/ui.py2
-rw-r--r--style.css7
2 files changed, 8 insertions, 1 deletions
diff --git a/modules/ui.py b/modules/ui.py
index 8ba84911..e8039d76 100644
--- a/modules/ui.py
+++ b/modules/ui.py
@@ -961,7 +961,7 @@ def create_ui(wrap_gradio_gpu_call):
extras_send_to_inpaint.click(
fn=lambda x: image_from_url_text(x),
- _js="extract_image_from_gallery_img2img",
+ _js="extract_image_from_gallery_inpaint",
inputs=[result_images],
outputs=[init_img_with_mask],
)
diff --git a/style.css b/style.css
index 04bb9576..00a3d07f 100644
--- a/style.css
+++ b/style.css
@@ -467,3 +467,10 @@ input[type="range"]{
max-width: 32em;
padding: 0;
}
+
+canvas[key="mask"] {
+ z-index: 12 !important;
+ filter: invert();
+ mix-blend-mode: multiply;
+ pointer-events: none;
+}