Loader shouldn't append a hypen for multi-atlases.

This commit is contained in:
Richard Davey 2017-04-08 01:13:38 +01:00
parent 92cd873d85
commit ecbc428917
3 changed files with 4 additions and 3 deletions

View file

@ -17,3 +17,4 @@ src/animation/creature/gl-matrix.js
src/animation/creature/CreatureMeshBone.js src/animation/creature/CreatureMeshBone.js
src/gameobjects/Creature.js src/gameobjects/Creature.js
src/stubs/* src/stubs/*
src/physics/matter-js/*

View file

@ -1,4 +1,4 @@
var CHECKSUM = { var CHECKSUM = {
build: 'faa78460-1b9c-11e7-ae3c-65c5c22515dc' build: 'd9e724e0-1bee-11e7-84b6-498a4b612112'
}; };
module.exports = CHECKSUM; module.exports = CHECKSUM;

View file

@ -173,8 +173,8 @@ Loader.prototype.multiatlas = function (key, textureURLs, atlasURLs, textureXhrS
{ {
var total = textureURLs; var total = textureURLs;
textureURLs = NumberArray(0, total, key + '-', '.png'); textureURLs = NumberArray(0, total, key, '.png');
atlasURLs = NumberArray(0, total, key + '-', '.json'); atlasURLs = NumberArray(0, total, key, '.json');
} }
else else
{ {