fix blob urls

beta.r3js.org
Theunis J. Botha 2016-11-11 11:29:23 +01:00
parent 4061f9ec4f
commit 431797fdaa
1 changed files with 2 additions and 1 deletions

View File

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