fix texture loading problems
parent
0ce34b54e3
commit
a11e5ca931
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue