Skip to content

Commit 28eaffa

Browse files
JPPhotoblessedcoolant
authored andcommitted
Update generationSlice.ts
Added perlin noise state restoration.
1 parent 3feff09 commit 28eaffa

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

invokeai/frontend/src/features/parameters/store/generationSlice.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,11 @@ export const generationSlice = createSlice({
195195
} else {
196196
state.threshold = threshold;
197197
}
198-
if (perlin) state.perlin = perlin;
199-
if (typeof perlin === 'undefined') state.perlin = 0;
198+
if (typeof perlin === 'undefined') {
199+
state.perlin = 0;
200+
} else {
201+
state.perlin = perlin;
202+
}
200203
if (typeof seamless === 'boolean') state.seamless = seamless;
201204
// if (typeof hires_fix === 'boolean') state.hiresFix = hires_fix; // TODO: Needs to be fixed after reorg
202205
if (width) state.width = width;

0 commit comments

Comments
 (0)