feat(ui): undo/redo in regional prompts

using the `redux-undo` library
This commit is contained in:
psychedelicious
2024-04-18 23:32:53 +10:00
committed by Kent Keirsey
parent 170763899a
commit d9dd00ea20
19 changed files with 148 additions and 46 deletions

View File

@ -22,8 +22,8 @@ export const addRegionalPromptsToGraph = async (state: RootState, graph: NonNull
const { dispatch } = getStore();
// TODO: Handle non-SDXL
// const isSDXL = state.generation.model?.base === 'sdxl';
const { autoNegative } = state.regionalPrompts;
const layers = state.regionalPrompts.layers
const { autoNegative } = state.regionalPrompts.present;
const layers = state.regionalPrompts.present.layers
.filter((l) => l.kind === 'promptRegionLayer') // We only want the prompt region layers
.filter((l) => l.isVisible); // Only visible layers are rendered on the canvas