Skip to content

Commit

Permalink
Fixed issue in toggleAllLensflares()
Browse files Browse the repository at this point in the history
  • Loading branch information
Elius94 committed Feb 20, 2023
1 parent 8e9077c commit 9f82c1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "photo-sphere-viewer-lensflare-plugin",
"version": "1.1.0",
"version": "1.1.1",
"description": "Plugin to add lens flares on a 360° pano built with photo-sphere-viewer",
"main": "dist/index.js",
"module": "dist/index.module.js",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ export class LensflarePlugin extends AbstractPlugin<LensflaresPluginEvents> {
*/
toggleLensflare(lensflareId: string | LensflareConfig, visible?: boolean) {
const lensflare = this.getLensflare(lensflareId);
lensflare.visible = visible === null ? !lensflare.visible : visible;
lensflare.visible = visible === undefined ? !lensflare.visible : visible;
this.viewer.needsUpdate();
}

Expand Down

0 comments on commit 9f82c1d

Please sign in to comment.