mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
fix(ui): konva caching opt-out doesn't do what i thought it would
This commit is contained in:
@@ -216,11 +216,8 @@ export class CanvasEntityObjectRenderer extends CanvasModuleBase {
|
||||
|
||||
// We should also never cache if the entity has no dimensions. Konva will log an error to console like this:
|
||||
// Konva error: Can not cache the node. Width or height of the node equals 0. Caching is skipped.
|
||||
//
|
||||
// It won't raise - just logs the error.
|
||||
const hasContent = this.konva.objectGroup.width() > 0 && this.konva.objectGroup.height() > 0;
|
||||
|
||||
if (hasContent && isVisible && (force || !isCached)) {
|
||||
if (isVisible && (force || !isCached)) {
|
||||
this.log.trace('Caching object group');
|
||||
this.konva.objectGroup.clearCache();
|
||||
this.konva.objectGroup.cache({ pixelRatio: 1, imageSmoothingEnabled: false });
|
||||
|
||||
Reference in New Issue
Block a user