From c977d295f532f834ba8d8a9f0cd2ce67927f7d78 Mon Sep 17 00:00:00 2001 From: Jonathan <34005131+JPPhoto@users.noreply.github.com> Date: Thu, 9 Feb 2023 06:31:57 -0600 Subject: [PATCH] Update generationSlice.ts --- .../src/features/parameters/store/generationSlice.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/invokeai/frontend/src/features/parameters/store/generationSlice.ts b/invokeai/frontend/src/features/parameters/store/generationSlice.ts index 47790277c2..16960f4397 100644 --- a/invokeai/frontend/src/features/parameters/store/generationSlice.ts +++ b/invokeai/frontend/src/features/parameters/store/generationSlice.ts @@ -276,8 +276,13 @@ export const generationSlice = createSlice({ } else { state.threshold = threshold; } - if (perlin) state.perlin = perlin; - if (typeof perlin === 'undefined') state.perlin = 0; + if (typeof perlin === 'undefined') { + state.perlin = perlin; + } + else + { + state.perlin = 0; + } if (typeof seamless === 'boolean') state.seamless = seamless; // if (typeof hires_fix === 'boolean') state.hiresFix = hires_fix; // TODO: Needs to be fixed after reorg if (width) state.width = width;