Always show previous mask and fix extras_send dest

This commit is contained in:
Vladimir Repin 2022-10-10 18:46:48 +03:00 committed by AUTOMATIC1111
parent 6c36fe5719
commit 9d33baba58
2 changed files with 8 additions and 1 deletions

View File

@ -961,7 +961,7 @@ def create_ui(wrap_gradio_gpu_call):
extras_send_to_inpaint.click( extras_send_to_inpaint.click(
fn=lambda x: image_from_url_text(x), fn=lambda x: image_from_url_text(x),
_js="extract_image_from_gallery_img2img", _js="extract_image_from_gallery_inpaint",
inputs=[result_images], inputs=[result_images],
outputs=[init_img_with_mask], outputs=[init_img_with_mask],
) )

View File

@ -467,3 +467,10 @@ input[type="range"]{
max-width: 32em; max-width: 32em;
padding: 0; padding: 0;
} }
canvas[key="mask"] {
z-index: 12 !important;
filter: invert();
mix-blend-mode: multiply;
pointer-events: none;
}