mirror of
https://github.com/photonstorm/phaser
synced 2024-11-10 07:04:31 +00:00
Textures.Parsers.JSONHash
will now perform a hasOwnProperty
check when iterating the frames, skipping anything that isn't a direct property. This should allow you to use generated atlas data that comes from JSON.parse
. Fix #4768
This commit is contained in:
parent
da4af063b9
commit
80c571963c
1 changed files with 5 additions and 0 deletions
|
@ -41,6 +41,11 @@ var JSONHash = function (texture, sourceIndex, json)
|
|||
|
||||
for (var key in frames)
|
||||
{
|
||||
if (!frames.hasOwnProperty(key))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
var src = frames[key];
|
||||
|
||||
// The frame values are the exact coordinates to cut the frame out of the atlas from
|
||||
|
|
Loading…
Reference in a new issue