mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 15:12:18 +00:00
Merge pull request #3937 from goldfire/goldfire-patch-1
Use correct frame name in pixel perfect hit test
This commit is contained in:
commit
7918f0991d
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ var CreatePixelPerfectHandler = function (textureManager, alphaTolerance)
|
|||
{
|
||||
return function (hitArea, x, y, gameObject)
|
||||
{
|
||||
var alpha = textureManager.getPixelAlpha(x, y, gameObject.texture.key, gameObject.frame.key);
|
||||
var alpha = textureManager.getPixelAlpha(x, y, gameObject.texture.key, gameObject.frame.name);
|
||||
|
||||
return (alpha && alpha >= alphaTolerance);
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue