fix blob urls
parent
4061f9ec4f
commit
431797fdaa
|
@ -160,6 +160,7 @@ GameLib.D3.Scene.prototype.loadTexture = function(url) {
|
||||||
this.textureLoader.load(
|
this.textureLoader.load(
|
||||||
url,
|
url,
|
||||||
function onLoad(textureInstance){
|
function onLoad(textureInstance){
|
||||||
|
textureInstance.myUrl = url;
|
||||||
defer.resolve(textureInstance);
|
defer.resolve(textureInstance);
|
||||||
},
|
},
|
||||||
function onProgress(xhr){
|
function onProgress(xhr){
|
||||||
|
@ -216,7 +217,7 @@ GameLib.D3.Scene.prototype.loadTextures = function(urls, onLoadedCallback) {
|
||||||
|
|
||||||
var filename = gameLibTexture.image.filename;
|
var filename = gameLibTexture.image.filename;
|
||||||
|
|
||||||
if (instanceTexture.image.src.match(new RegExp(filename + '$'))) {
|
if (instanceTexture.myUrl.match(new RegExp(filename + '$'))) {
|
||||||
instanceMaterial[instanceMapId] = new this.graphics.instance.Texture(
|
instanceMaterial[instanceMapId] = new this.graphics.instance.Texture(
|
||||||
instanceTexture.image,
|
instanceTexture.image,
|
||||||
gameLibTexture.mapping,
|
gameLibTexture.mapping,
|
||||||
|
|
Loading…
Reference in New Issue