fix texture loading problems

beta.r3js.org
Theunis J. Botha 2016-11-24 10:57:21 +01:00
parent 0ce34b54e3
commit a11e5ca931
1 changed files with 2 additions and 2 deletions

View File

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