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>) => {
|
||||
state.seedWeights = action.payload;
|
||||
state.shouldGenerateVariations = true;
|
||||
state.variationAmount = 0;
|
||||
},
|
||||
setAllTextToImageParameters: (
|
||||
state,
|
||||
@ -220,6 +222,7 @@ export const optionsSlice = createSlice({
|
||||
if (variations && variations.length > 0) {
|
||||
state.seedWeights = seedWeightsToString(variations);
|
||||
state.shouldGenerateVariations = true;
|
||||
state.variationAmount = 0;
|
||||
} else {
|
||||
state.shouldGenerateVariations = false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user