mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Fixes variation params not set correctly when recalled
This commit is contained in:
parent
318426b67a
commit
a7f11a8c09
@ -197,6 +197,8 @@ export const optionsSlice = createSlice({
|
|||||||
},
|
},
|
||||||
setSeedWeights: (state, action: PayloadAction<string>) => {
|
setSeedWeights: (state, action: PayloadAction<string>) => {
|
||||||
state.seedWeights = action.payload;
|
state.seedWeights = action.payload;
|
||||||
|
state.shouldGenerateVariations = true;
|
||||||
|
state.variationAmount = 0;
|
||||||
},
|
},
|
||||||
setAllTextToImageParameters: (
|
setAllTextToImageParameters: (
|
||||||
state,
|
state,
|
||||||
@ -220,6 +222,7 @@ export const optionsSlice = createSlice({
|
|||||||
if (variations && variations.length > 0) {
|
if (variations && variations.length > 0) {
|
||||||
state.seedWeights = seedWeightsToString(variations);
|
state.seedWeights = seedWeightsToString(variations);
|
||||||
state.shouldGenerateVariations = true;
|
state.shouldGenerateVariations = true;
|
||||||
|
state.variationAmount = 0;
|
||||||
} else {
|
} else {
|
||||||
state.shouldGenerateVariations = false;
|
state.shouldGenerateVariations = false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user