mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Update generationSlice.ts
This commit is contained in:
parent
28eaffa188
commit
c977d295f5
@ -276,8 +276,13 @@ export const generationSlice = createSlice({
|
|||||||
} else {
|
} else {
|
||||||
state.threshold = threshold;
|
state.threshold = threshold;
|
||||||
}
|
}
|
||||||
if (perlin) state.perlin = perlin;
|
if (typeof perlin === 'undefined') {
|
||||||
if (typeof perlin === 'undefined') state.perlin = 0;
|
state.perlin = perlin;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
state.perlin = 0;
|
||||||
|
}
|
||||||
if (typeof seamless === 'boolean') state.seamless = seamless;
|
if (typeof seamless === 'boolean') state.seamless = seamless;
|
||||||
// if (typeof hires_fix === 'boolean') state.hiresFix = hires_fix; // TODO: Needs to be fixed after reorg
|
// if (typeof hires_fix === 'boolean') state.hiresFix = hires_fix; // TODO: Needs to be fixed after reorg
|
||||||
if (width) state.width = width;
|
if (width) state.width = width;
|
||||||
|
Loading…
Reference in New Issue
Block a user