mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 09:16:01 +08:00
[phaser] Fix extracting atlas page file names.
This commit is contained in:
parent
9dbada6541
commit
b4969465a0
@ -285,7 +285,7 @@ export class SpineAtlasFile extends Phaser.Loader.MultiFile {
|
||||
this.pending--;
|
||||
|
||||
if (file.type == "text") {
|
||||
var lines = file.data.split('\n');
|
||||
var lines = file.data.split(/\r\n|\r|\n/);
|
||||
let textures = [];
|
||||
textures.push(lines[0]);
|
||||
for (var t = 1; t < lines.length; t++) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user