Skip to content

Commit

Permalink
use consistent variable names in Icon class
Browse files Browse the repository at this point in the history
  • Loading branch information
mggower committed Nov 6, 2023
1 parent e6e8b9f commit f2538de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/renderers/webgl/objects/icon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

0 comments on commit f2538de

Please sign in to comment.