fix(ui): do not render rasterized layer unless renderObjects=true

This commit is contained in:
psychedelicious 2024-08-19 15:37:19 +10:00
parent f78f4ca25f
commit 0c2b8edc8d

View File

@ -420,7 +420,9 @@ export class CanvasObjectRenderer {
}
imageDTO = await uploadImage(blob, `${this.id}_rasterized.png`, 'other', true);
const imageObject = imageDTOToImageObject(imageDTO);
if (replaceObjects) {
await this.renderObject(imageObject, true);
}
this.manager.stateApi.rasterizeEntity({
entityIdentifier: this.parent.getEntityIdentifier(),
imageObject,