Browse Source

formatting

Raanan Weber 4 years ago
parent
commit
00b45ba885
1 changed files with 15 additions and 7 deletions
  1. 15 7
      src/Helpers/photoDome.ts

+ 15 - 7
src/Helpers/photoDome.ts

@@ -55,14 +55,22 @@ export class PhotoDome extends TextureDome<Texture> {
     }
 
     protected _initTexture(urlsOrElement: string, scene: Scene, options: any): Texture {
-        return new Texture(urlsOrElement, scene, !options.generateMipMaps, !this._useDirectMapping, undefined, () => {
-            this.onLoadObservable.notifyObservers();
-        }, (message, exception) => {
-            this.onLoadErrorObservable.notifyObservers(message || "Unknown error occured");
+        return new Texture(
+            urlsOrElement,
+            scene,
+            !options.generateMipMaps,
+            !this._useDirectMapping,
+            undefined,
+            () => {
+                this.onLoadObservable.notifyObservers();
+            },
+            (message, exception) => {
+                this.onLoadErrorObservable.notifyObservers(message || "Unknown error occured");
 
-            if (this.onError) {
-                this.onError(message, exception);
+                if (this.onError) {
+                    this.onError(message, exception);
+                }
             }
-        });
+        );
     }
 }