@react-three/fiber 8.13.8 → 8.13.9

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @react-three/fiber
2
2
 
3
+ ## 8.13.9
4
+
5
+ ### Patch Changes
6
+
7
+ - 44d57b3c: fix(native): TextureLoader should remain consistent with FileLoader
8
+
3
9
  ## 8.13.8
4
10
 
5
11
  ### Patch Changes
@@ -166,6 +166,7 @@ function polyfills() {
166
166
  // There's no Image in native, so create a data texture instead
167
167
  const prevTextureLoad = THREE__namespace.TextureLoader.prototype.load;
168
168
  THREE__namespace.TextureLoader.prototype.load = function load(url, onLoad, onProgress, onError) {
169
+ if (this.path) url = this.path + url;
169
170
  const texture = new THREE__namespace.Texture();
170
171
 
171
172
  // @ts-ignore
@@ -166,6 +166,7 @@ function polyfills() {
166
166
  // There's no Image in native, so create a data texture instead
167
167
  const prevTextureLoad = THREE__namespace.TextureLoader.prototype.load;
168
168
  THREE__namespace.TextureLoader.prototype.load = function load(url, onLoad, onProgress, onError) {
169
+ if (this.path) url = this.path + url;
169
170
  const texture = new THREE__namespace.Texture();
170
171
 
171
172
  // @ts-ignore
@@ -139,6 +139,7 @@ function polyfills() {
139
139
  // There's no Image in native, so create a data texture instead
140
140
  const prevTextureLoad = THREE.TextureLoader.prototype.load;
141
141
  THREE.TextureLoader.prototype.load = function load(url, onLoad, onProgress, onError) {
142
+ if (this.path) url = this.path + url;
142
143
  const texture = new THREE.Texture();
143
144
 
144
145
  // @ts-ignore
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-three/fiber",
3
- "version": "8.13.8",
3
+ "version": "8.13.9",
4
4
  "description": "A React renderer for Threejs",
5
5
  "keywords": [
6
6
  "react",