mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +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--;
|
this.pending--;
|
||||||
|
|
||||||
if (file.type == "text") {
|
if (file.type == "text") {
|
||||||
var lines = file.data.split('\n');
|
var lines = file.data.split(/\r\n|\r|\n/);
|
||||||
let textures = [];
|
let textures = [];
|
||||||
textures.push(lines[0]);
|
textures.push(lines[0]);
|
||||||
for (var t = 1; t < lines.length; t++) {
|
for (var t = 1; t < lines.length; t++) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user