mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
fix(ui): edge case where transforms don't do anything due to caching
This could be triggered by transforming a layer, undoing, then transforming again. The simple fix is to ignore the rasterization cache for all transforms.
This commit is contained in:
@@ -644,7 +644,12 @@ export class CanvasEntityTransformer extends CanvasModuleBase {
|
||||
this.$isProcessing.set(true);
|
||||
const rect = this.getRelativeRect();
|
||||
const rasterizeResult = await withResultAsync(() =>
|
||||
this.parent.renderer.rasterize({ rect, replaceObjects: true, attrs: { opacity: 1, filters: [] } })
|
||||
this.parent.renderer.rasterize({
|
||||
rect,
|
||||
replaceObjects: true,
|
||||
ignoreCache: true,
|
||||
attrs: { opacity: 1, filters: [] },
|
||||
})
|
||||
);
|
||||
if (rasterizeResult.isErr()) {
|
||||
this.log.error({ error: serializeError(rasterizeResult.error) }, 'Failed to rasterize entity');
|
||||
|
||||
Reference in New Issue
Block a user