From 86c2fbca05886692edbf999d5466635a534199f6 Mon Sep 17 00:00:00 2001 From: tim h Date: Sat, 18 Feb 2023 21:45:04 -0600 Subject: [PATCH] tiny changes --- index.html | 4 ++-- js/index.js | 2 +- js/ui/tool/dream.js | 6 ++++++ 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 9cbaee8..ee6a6af 100644 --- a/index.html +++ b/index.html @@ -451,7 +451,7 @@ - + - + diff --git a/js/index.js b/js/index.js index fab622e..7323c59 100644 --- a/js/index.js +++ b/js/index.js @@ -1428,7 +1428,7 @@ function changeScript(evt) { switch (selected) { case "custom": { scriptName.value = ""; - scriptArgs.value = ""; + scriptArgs.value = "[]"; scriptArgs.title = ""; enable(); break; diff --git a/js/ui/tool/dream.js b/js/ui/tool/dream.js index 66d17c7..71df7be 100644 --- a/js/ui/tool/dream.js +++ b/js/ui/tool/dream.js @@ -1450,6 +1450,9 @@ const dreamTool = () => state.preserveMasks = false; state.eagerGenerateCount = 0; + state.carve_blur = 0; + state.carve_threshold = 10; + state.erasePrevCursor = () => uiCtx.clearRect(0, 0, uiCanvas.width, uiCanvas.height); state.erasePrevReticle = () => @@ -1942,6 +1945,9 @@ const img2imgTool = () => state.keepBorderSize = 64; state.gradient = true; + state.carve_blur = 0; + state.carve_threshold = 10; + state.erasePrevCursor = () => uiCtx.clearRect(0, 0, uiCanvas.width, uiCanvas.height); state.erasePrevReticle = () =>