diff --git a/src/renderers/webgl/objects/icon.ts b/src/renderers/webgl/objects/icon.ts index 67f1b607..70ded1b7 100644 --- a/src/renderers/webgl/objects/icon.ts +++ b/src/renderers/webgl/objects/icon.ts @@ -103,8 +103,8 @@ export class Icon { } private createImageIcon(style: ImageIcon) { - const sprite = new Sprite(this.imageIconTexture.create(style)) - sprite.scale.set(style.scale ?? 1) - return sprite + const icon = new Sprite(this.imageIconTexture.create(style)) + icon.scale.set(style.scale ?? 1) + return icon } }