Skip to content

Commit c977d29

Browse files
JPPhotoblessedcoolant
authored andcommitted
Update generationSlice.ts
1 parent 28eaffa commit c977d29

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,13 @@ export const generationSlice = createSlice({
276276
} else {
277277
state.threshold = threshold;
278278
}
279-
if (perlin) state.perlin = perlin;
280-
if (typeof perlin === 'undefined') state.perlin = 0;
279+
if (typeof perlin === 'undefined') {
280+
state.perlin = perlin;
281+
}
282+
else
283+
{
284+
state.perlin = 0;
285+
}
281286
if (typeof seamless === 'boolean') state.seamless = seamless;
282287
// if (typeof hires_fix === 'boolean') state.hiresFix = hires_fix; // TODO: Needs to be fixed after reorg
283288
if (width) state.width = width;

0 commit comments

Comments
 (0)