@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
|
@@ -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
|