mirror of
https://github.com/photonstorm/phaser
synced 2024-11-16 17:58:23 +00:00
Update ParseTilesets.js
This commit is contained in:
parent
e8fe16c417
commit
0c05d681e6
1 changed files with 5 additions and 1 deletions
|
@ -10,7 +10,7 @@ var ParseObject = require('./ParseObject');
|
|||
var ParseWangsets = require('./ParseWangsets');
|
||||
|
||||
/**
|
||||
* Tilesets and Image Collections
|
||||
* Tilesets and Image Collections.
|
||||
*
|
||||
* @function Phaser.Tilemaps.Parsers.Tiled.ParseTilesets
|
||||
* @since 3.0.0
|
||||
|
@ -43,6 +43,7 @@ var ParseTilesets = function (json)
|
|||
{
|
||||
var datas = undefined;
|
||||
var props = undefined;
|
||||
|
||||
if (Array.isArray(set.tiles))
|
||||
{
|
||||
datas = datas || {};
|
||||
|
@ -96,12 +97,15 @@ var ParseTilesets = function (json)
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (Array.isArray(set.wangsets))
|
||||
{
|
||||
datas = datas || {};
|
||||
props = props || {};
|
||||
|
||||
ParseWangsets(set.wangsets, datas);
|
||||
}
|
||||
|
||||
if (datas) // Implies also props is set.
|
||||
{
|
||||
newSet.tileData = datas;
|
||||
|
|
Loading…
Reference in a new issue