From 545c02b0db6e308306f40a2cfd7d62e47bc3571f Mon Sep 17 00:00:00 2001 From: tim h Date: Fri, 27 Jan 2023 22:58:15 -0600 Subject: [PATCH] autolayers for stamps too this has confirmed a layers bug that i'm too stupid to ... debug but i'll sure try to make an issue for it --- js/ui/tool/stamp.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/ui/tool/stamp.js b/js/ui/tool/stamp.js index 2ac60bd..203dda6 100644 --- a/js/ui/tool/stamp.js +++ b/js/ui/tool/stamp.js @@ -419,6 +419,11 @@ const stampTool = () => const resource = state.selected; if (resource) { + if ( + localStorage.getItem("openoutpaint/settings.autolayer") == "true" + ) { + commands.runCommand("addLayer", "Added Layer", {}); + } const {canvas, bb} = cropCanvas(ovCanvas, {border: 10}); commands.runCommand("drawImage", "Image Stamp", { image: canvas,