File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
invokeai/frontend/web/src/features/controlLayers/konva/CanvasEntity Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -216,11 +216,8 @@ export class CanvasEntityObjectRenderer extends CanvasModuleBase {
216
216
217
217
// We should also never cache if the entity has no dimensions. Konva will log an error to console like this:
218
218
// Konva error: Can not cache the node. Width or height of the node equals 0. Caching is skipped.
219
- //
220
- // It won't raise - just logs the error.
221
- const hasContent = this . konva . objectGroup . width ( ) > 0 && this . konva . objectGroup . height ( ) > 0 ;
222
219
223
- if ( hasContent && isVisible && ( force || ! isCached ) ) {
220
+ if ( isVisible && ( force || ! isCached ) ) {
224
221
this . log . trace ( 'Caching object group' ) ;
225
222
this . konva . objectGroup . clearCache ( ) ;
226
223
this . konva . objectGroup . cache ( { pixelRatio : 1 , imageSmoothingEnabled : false } ) ;
You can’t perform that action at this time.
0 commit comments