Skip to content

Commit 93b4d33

Browse files
committed
Suffix support in multiatlas call.
1 parent 581fdb5 commit 93b4d33

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

v3/src/state/systems/Loader.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,10 @@ Loader.prototype.multiatlas = function (key, textureURLs, atlasURLs, textureXhrS
172172
if (typeof textureURLs === 'number')
173173
{
174174
var total = textureURLs;
175+
var suffix = (atlasURLs === undefined) ? '' : atlasURLs;
175176

176-
textureURLs = NumberArray(0, total, key, '.png');
177-
atlasURLs = NumberArray(0, total, key, '.json');
177+
textureURLs = NumberArray(0, total, key + suffix, '.png');
178+
atlasURLs = NumberArray(0, total, key + suffix, '.json');
178179
}
179180
else
180181
{

0 commit comments

Comments
 (0)