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
This commit is contained in:
tim h 2023-01-27 22:58:15 -06:00
parent 464da36e2a
commit 545c02b0db

View file

@ -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,