diff --git a/src/game-lib-scene.js b/src/game-lib-scene.js index c4492dd..b3a2a6f 100644 --- a/src/game-lib-scene.js +++ b/src/game-lib-scene.js @@ -379,7 +379,7 @@ GameLib.D3.Scene.LoadScene = function( for (var map in gameLibTextureMap) { - if (gameLibTextureMap.hasOwnProperty(map) && apiMaps[map] && apiMaps[map].texture) { + if (gameLibTextureMap.hasOwnProperty(map) && apiMaps[map] && apiMaps[map].texture && apiMaps[map].texture.imagePath) { var apiTexture = apiMaps[map].texture; @@ -388,7 +388,7 @@ GameLib.D3.Scene.LoadScene = function( apiTexture.id, map, apiTexture.name, - uploadUrl + '/' + apiTexture.imagePath, + apiTexture.imagePath, apiTexture.wrapS, apiTexture.wrapT, new GameLib.D3.Vector2(