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:
parent
464da36e2a
commit
545c02b0db
1 changed files with 5 additions and 0 deletions
|
@ -419,6 +419,11 @@ const stampTool = () =>
|
||||||
const resource = state.selected;
|
const resource = state.selected;
|
||||||
|
|
||||||
if (resource) {
|
if (resource) {
|
||||||
|
if (
|
||||||
|
localStorage.getItem("openoutpaint/settings.autolayer") == "true"
|
||||||
|
) {
|
||||||
|
commands.runCommand("addLayer", "Added Layer", {});
|
||||||
|
}
|
||||||
const {canvas, bb} = cropCanvas(ovCanvas, {border: 10});
|
const {canvas, bb} = cropCanvas(ovCanvas, {border: 10});
|
||||||
commands.runCommand("drawImage", "Image Stamp", {
|
commands.runCommand("drawImage", "Image Stamp", {
|
||||||
image: canvas,
|
image: canvas,
|
||||||
|
|
Loading…
Reference in a new issue