mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): do not render rasterized layer unless renderObjects=true
This commit is contained in:
parent
f78f4ca25f
commit
0c2b8edc8d
@ -420,7 +420,9 @@ export class CanvasObjectRenderer {
|
|||||||
}
|
}
|
||||||
imageDTO = await uploadImage(blob, `${this.id}_rasterized.png`, 'other', true);
|
imageDTO = await uploadImage(blob, `${this.id}_rasterized.png`, 'other', true);
|
||||||
const imageObject = imageDTOToImageObject(imageDTO);
|
const imageObject = imageDTOToImageObject(imageDTO);
|
||||||
|
if (replaceObjects) {
|
||||||
await this.renderObject(imageObject, true);
|
await this.renderObject(imageObject, true);
|
||||||
|
}
|
||||||
this.manager.stateApi.rasterizeEntity({
|
this.manager.stateApi.rasterizeEntity({
|
||||||
entityIdentifier: this.parent.getEntityIdentifier(),
|
entityIdentifier: this.parent.getEntityIdentifier(),
|
||||||
imageObject,
|
imageObject,
|
||||||
|
Loading…
Reference in New Issue
Block a user