Proposed fix for the issue#4983
This commit is contained in:
Richard Davey 2020-04-27 12:39:24 +01:00 committed by GitHub
commit 91bfd7d0c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -149,10 +149,10 @@ var LayerData = new Class({
* Layer specific properties (can be specified in Tiled) * Layer specific properties (can be specified in Tiled)
* *
* @name Phaser.Tilemaps.LayerData#properties * @name Phaser.Tilemaps.LayerData#properties
* @type {object} * @type {object[]}
* @since 3.0.0 * @since 3.0.0
*/ */
this.properties = GetFastValue(config, 'properties', {}); this.properties = GetFastValue(config, 'properties', []);
/** /**
* [description] * [description]

View file

@ -127,7 +127,7 @@ var ParseTileLayers = function (json, insertNull)
tileHeight: json.tileheight, tileHeight: json.tileheight,
alpha: (curGroupState.opacity * curl.opacity), alpha: (curGroupState.opacity * curl.opacity),
visible: (curGroupState.visible && curl.visible), visible: (curGroupState.visible && curl.visible),
properties: GetFastValue(curl, 'properties', {}) properties: GetFastValue(curl, 'properties', [])
}); });
for (var c = 0; c < curl.height; c++) for (var c = 0; c < curl.height; c++)
@ -200,7 +200,7 @@ var ParseTileLayers = function (json, insertNull)
tileHeight: json.tileheight, tileHeight: json.tileheight,
alpha: (curGroupState.opacity * curl.opacity), alpha: (curGroupState.opacity * curl.opacity),
visible: (curGroupState.visible && curl.visible), visible: (curGroupState.visible && curl.visible),
properties: GetFastValue(curl, 'properties', {}) properties: GetFastValue(curl, 'properties', [])
}); });
var row = []; var row = [];