mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-12 21:14:59 -05:00
feat(ui): bookmark new inpaint masks
This commit is contained in:
@@ -199,7 +199,7 @@ export const newCanvasFromImage = async (arg: {
|
||||
dispatch(bboxChangedFromCanvas({ x: 0, y: 0, width, height }));
|
||||
dispatch(rasterLayerAdded({ overrides, isSelected: true }));
|
||||
if (withInpaintMask) {
|
||||
dispatch(inpaintMaskAdded({ isSelected: true }));
|
||||
dispatch(inpaintMaskAdded({ isSelected: true, isBookmarked: true }));
|
||||
}
|
||||
dispatch(canvasClearHistory());
|
||||
break;
|
||||
@@ -216,7 +216,7 @@ export const newCanvasFromImage = async (arg: {
|
||||
dispatch(bboxChangedFromCanvas({ x: 0, y: 0, width, height }));
|
||||
dispatch(controlLayerAdded({ overrides, isSelected: true }));
|
||||
if (withInpaintMask) {
|
||||
dispatch(inpaintMaskAdded({ isSelected: true }));
|
||||
dispatch(inpaintMaskAdded({ isSelected: true, isBookmarked: true }));
|
||||
}
|
||||
dispatch(canvasClearHistory());
|
||||
break;
|
||||
@@ -232,7 +232,7 @@ export const newCanvasFromImage = async (arg: {
|
||||
dispatch(bboxChangedFromCanvas({ x: 0, y: 0, width, height }));
|
||||
dispatch(inpaintMaskAdded({ overrides, isSelected: true }));
|
||||
if (withInpaintMask) {
|
||||
dispatch(inpaintMaskAdded({ isSelected: true }));
|
||||
dispatch(inpaintMaskAdded({ isSelected: true, isBookmarked: true }));
|
||||
}
|
||||
dispatch(canvasClearHistory());
|
||||
break;
|
||||
@@ -248,7 +248,7 @@ export const newCanvasFromImage = async (arg: {
|
||||
dispatch(bboxChangedFromCanvas({ x: 0, y: 0, width, height }));
|
||||
dispatch(rgAdded({ overrides, isSelected: true }));
|
||||
if (withInpaintMask) {
|
||||
dispatch(inpaintMaskAdded({ isSelected: true }));
|
||||
dispatch(inpaintMaskAdded({ isSelected: true, isBookmarked: true }));
|
||||
}
|
||||
dispatch(canvasClearHistory());
|
||||
break;
|
||||
@@ -259,7 +259,7 @@ export const newCanvasFromImage = async (arg: {
|
||||
dispatch(canvasSessionStarted({ sessionType: 'advanced' }));
|
||||
dispatch(referenceImageAdded({ overrides: { ipAdapter }, isSelected: true }));
|
||||
if (withInpaintMask) {
|
||||
dispatch(inpaintMaskAdded({ isSelected: true }));
|
||||
dispatch(inpaintMaskAdded({ isSelected: true, isBookmarked: true }));
|
||||
}
|
||||
dispatch(canvasClearHistory());
|
||||
break;
|
||||
@@ -271,7 +271,7 @@ export const newCanvasFromImage = async (arg: {
|
||||
dispatch(canvasSessionStarted({ sessionType: 'advanced' }));
|
||||
dispatch(rgAdded({ overrides: { referenceImages }, isSelected: true }));
|
||||
if (withInpaintMask) {
|
||||
dispatch(inpaintMaskAdded({ isSelected: true }));
|
||||
dispatch(inpaintMaskAdded({ isSelected: true, isBookmarked: true }));
|
||||
}
|
||||
dispatch(canvasClearHistory());
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user