ohzi-core 6.3.6 → 6.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ohzi-core",
3
- "version": "6.3.6",
3
+ "version": "6.4.0",
4
4
  "description": "OHZI Core Library",
5
5
  "source": "src/index.js",
6
6
  "module": "build/index.module.js",
@@ -4,19 +4,11 @@ import { sRGBEncoding } from 'three';
4
4
 
5
5
  export default class BasisLoader extends AbstractLoader
6
6
  {
7
- constructor(resource_id, url, renderer, loader, size)
7
+ constructor(resource_id, url, loader, size)
8
8
  {
9
9
  super(resource_id, url, size);
10
10
 
11
11
  this.loader = loader;
12
-
13
- this.loader.setWorkerLimit(1);
14
-
15
- this.loader.setTranscoderPath(
16
- 'libs/basis/'
17
- );
18
-
19
- this.loader.detectSupport(renderer);
20
12
  }
21
13
 
22
14
  on_preloaded_finished(resource_container)
@@ -30,6 +30,11 @@ export default class TextureLoader extends AbstractLoader
30
30
  this.__update_downloaded_bytes(1, 1);
31
31
  this.__loading_ended();
32
32
  };
33
+
34
+ image.onerror = () =>
35
+ {
36
+ console.error('Error loading texture. Maybe the resource is not an image?', this.url);
37
+ };
33
38
  });
34
39
  }
35
40
  }