diff --git a/src/app/working-area/working-area.component.ts b/src/app/working-area/working-area.component.ts index caa4486..f458f80 100644 --- a/src/app/working-area/working-area.component.ts +++ b/src/app/working-area/working-area.component.ts @@ -983,6 +983,12 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV if (imageAngle === undefined || imageAngle === null) { imageAngle = 0; } + if (imageWidth === undefined || imageWidth === null || imageWidth === 0) { + imageWidth = 1; + } + if (imageHeight === undefined || imageHeight === null || imageHeight === 0) { + imageHeight = 1; + } this.backgroundImage.scale.set(1); if (imageUrl === undefined || imageUrl === null || imageUrl === '') { this.backgroundImage.texture = this.backgroundTexture;