mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 13:13:43 +00:00
fix light2d using tileset from dynamictilemaplayer (#4167,#4079)
This commit is contained in:
parent
c25331cf30
commit
c893ca6186
1 changed files with 8 additions and 1 deletions
|
@ -250,7 +250,14 @@ var ForwardDiffuseLightPipeline = new Class({
|
|||
}
|
||||
else if (gameObject.tileset)
|
||||
{
|
||||
normalTexture = gameObject.tileset.image.dataSource[0];
|
||||
if (Array.isArray(gameObject.tileset))
|
||||
{
|
||||
normalTexture = gameObject.tileset[0].image.dataSource[0];
|
||||
}
|
||||
else
|
||||
{
|
||||
normalTexture = gameObject.tileset.image.dataSource[0];
|
||||
}
|
||||
}
|
||||
|
||||
if (!normalTexture)
|
||||
|
|
Loading…
Reference in a new issue