mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Fixes wonky canvas layer ordering & compositing
This commit is contained in:
committed by
blessedcoolant
parent
17b295871f
commit
5304ef504c
File diff suppressed because one or more lines are too long
4
frontend/dist/index.html
vendored
4
frontend/dist/index.html
vendored
@ -10,6 +10,7 @@
|
|||||||
<<<<<<< refs/remotes/upstream/development
|
<<<<<<< refs/remotes/upstream/development
|
||||||
<<<<<<< refs/remotes/upstream/development
|
<<<<<<< refs/remotes/upstream/development
|
||||||
<<<<<<< refs/remotes/upstream/development
|
<<<<<<< refs/remotes/upstream/development
|
||||||
|
<<<<<<< refs/remotes/upstream/development
|
||||||
<<<<<<< refs/remotes/upstream/development
|
<<<<<<< refs/remotes/upstream/development
|
||||||
<script type="module" crossorigin src="./assets/index.a8ba2a6c.js"></script>
|
<script type="module" crossorigin src="./assets/index.a8ba2a6c.js"></script>
|
||||||
<link rel="stylesheet" href="./assets/index.40a72c80.css">
|
<link rel="stylesheet" href="./assets/index.40a72c80.css">
|
||||||
@ -28,6 +29,9 @@
|
|||||||
=======
|
=======
|
||||||
<script type="module" crossorigin src="./assets/index.7f5e02f1.js"></script>
|
<script type="module" crossorigin src="./assets/index.7f5e02f1.js"></script>
|
||||||
>>>>>>> Outpainting tab loads to empty canvas instead of upload
|
>>>>>>> Outpainting tab loads to empty canvas instead of upload
|
||||||
|
=======
|
||||||
|
<script type="module" crossorigin src="./assets/index.c26f71e8.js"></script>
|
||||||
|
>>>>>>> Fixes wonky canvas layer ordering & compositing
|
||||||
<link rel="stylesheet" href="./assets/index.978b75a1.css">
|
<link rel="stylesheet" href="./assets/index.978b75a1.css">
|
||||||
>>>>>>> Builds fresh bundle
|
>>>>>>> Builds fresh bundle
|
||||||
</head>
|
</head>
|
||||||
|
@ -55,6 +55,7 @@ const canvasSelector = createSelector(
|
|||||||
stageCoordinates,
|
stageCoordinates,
|
||||||
tool,
|
tool,
|
||||||
isMovingStage,
|
isMovingStage,
|
||||||
|
shouldShowIntermediates,
|
||||||
} = currentCanvas;
|
} = currentCanvas;
|
||||||
|
|
||||||
const { shouldShowGrid } = outpaintingCanvas;
|
const { shouldShowGrid } = outpaintingCanvas;
|
||||||
@ -87,6 +88,7 @@ const canvasSelector = createSelector(
|
|||||||
tool,
|
tool,
|
||||||
isOnOutpaintingTab: activeTabName === 'outpainting',
|
isOnOutpaintingTab: activeTabName === 'outpainting',
|
||||||
isStaging,
|
isStaging,
|
||||||
|
shouldShowIntermediates,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -113,6 +115,7 @@ const IAICanvas = () => {
|
|||||||
tool,
|
tool,
|
||||||
isOnOutpaintingTab,
|
isOnOutpaintingTab,
|
||||||
isStaging,
|
isStaging,
|
||||||
|
shouldShowIntermediates,
|
||||||
} = useAppSelector(canvasSelector);
|
} = useAppSelector(canvasSelector);
|
||||||
|
|
||||||
useCanvasHotkeys();
|
useCanvasHotkeys();
|
||||||
@ -176,31 +179,29 @@ const IAICanvas = () => {
|
|||||||
</Layer>
|
</Layer>
|
||||||
|
|
||||||
<Layer
|
<Layer
|
||||||
id={'image'}
|
id={'base'}
|
||||||
ref={canvasImageLayerRef}
|
ref={canvasImageLayerRef}
|
||||||
listening={false}
|
listening={false}
|
||||||
imageSmoothingEnabled={false}
|
imageSmoothingEnabled={false}
|
||||||
>
|
>
|
||||||
<IAICanvasObjectRenderer />
|
<IAICanvasObjectRenderer />
|
||||||
<IAICanvasIntermediateImage />
|
|
||||||
</Layer>
|
</Layer>
|
||||||
<Layer id={'mask'} visible={isMaskEnabled} listening={false}>
|
<Layer id={'mask'} visible={isMaskEnabled} listening={false}>
|
||||||
<IAICanvasMaskLines visible={true} listening={false} />
|
<IAICanvasMaskLines visible={true} listening={false} />
|
||||||
<IAICanvasMaskCompositer listening={false} />
|
<IAICanvasMaskCompositer listening={false} />
|
||||||
</Layer>
|
</Layer>
|
||||||
<Layer id={'tool'}>
|
<Layer id="preview" imageSmoothingEnabled={false}>
|
||||||
{!isStaging && (
|
{!isStaging && (
|
||||||
<>
|
|
||||||
<IAICanvasBoundingBox visible={shouldShowBoundingBox} />
|
|
||||||
<IAICanvasBrushPreview
|
<IAICanvasBrushPreview
|
||||||
visible={tool !== 'move'}
|
visible={tool !== 'move'}
|
||||||
listening={false}
|
listening={false}
|
||||||
/>
|
/>
|
||||||
</>
|
|
||||||
)}
|
)}
|
||||||
</Layer>
|
|
||||||
<Layer imageSmoothingEnabled={false}>
|
|
||||||
{isStaging && <IAICanvasStagingArea />}
|
{isStaging && <IAICanvasStagingArea />}
|
||||||
|
{shouldShowIntermediates && <IAICanvasIntermediateImage />}
|
||||||
|
{!isStaging && (
|
||||||
|
<IAICanvasBoundingBox visible={shouldShowBoundingBox} />
|
||||||
|
)}
|
||||||
</Layer>
|
</Layer>
|
||||||
</Stage>
|
</Stage>
|
||||||
{isOnOutpaintingTab && <IAICanvasStatusText />}
|
{isOnOutpaintingTab && <IAICanvasStatusText />}
|
||||||
|
@ -151,11 +151,11 @@ const IAICanvasMaskCompositer = (props: IAICanvasMaskCompositerProps) => {
|
|||||||
if (
|
if (
|
||||||
!(
|
!(
|
||||||
fillPatternImage &&
|
fillPatternImage &&
|
||||||
stageCoordinates.x &&
|
stageCoordinates.x !== undefined &&
|
||||||
stageCoordinates.y &&
|
stageCoordinates.y !== undefined &&
|
||||||
stageScale &&
|
stageScale !== undefined &&
|
||||||
stageDimensions.width &&
|
stageDimensions.width !== undefined &&
|
||||||
stageDimensions.height
|
stageDimensions.height !== undefined
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
return null;
|
return null;
|
||||||
|
Reference in New Issue
Block a user