fix(ui): filter layer data pushed to parent rendered when saving as

This commit is contained in:
psychedelicious
2024-10-30 05:44:00 +10:00
parent d81c38c350
commit c885c3c9a6

View File

@@ -228,8 +228,11 @@ export class CanvasEntityFilterer extends CanvasModuleBase {
this.log.warn('No image state to apply filter to');
return;
}
this.log.trace('Applying filter');
this.parent.bufferRenderer.commitBuffer();
this.log.trace(`Saving as ${type}`);
// Clear the buffer - we are creating a new entity, so we don't want to keep the old one
this.parent.bufferRenderer.clearBuffer();
const rect = this.parent.transformer.getRelativeRect();
const arg = {
overrides: {