mirror of
https://github.com/photonstorm/phaser
synced 2025-02-17 22:48:34 +00:00
Merge pull request #4984 from Nightspeller/issue#4983
Proposed fix for the issue#4983
This commit is contained in:
commit
91bfd7d0c2
2 changed files with 4 additions and 4 deletions
|
@ -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]
|
||||||
|
|
|
@ -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 = [];
|
||||||
|
|
Loading…
Add table
Reference in a new issue