mirror of
https://github.com/photonstorm/phaser
synced 2024-11-26 14:40:38 +00:00
setFrame will use a custom pivot, if set.
This commit is contained in:
parent
b525ecb502
commit
3422569a4a
1 changed files with 5 additions and 0 deletions
|
@ -75,6 +75,11 @@ var Texture = {
|
|||
this.renderFlags |= _FLAG;
|
||||
}
|
||||
|
||||
if (this.frame.customPivot)
|
||||
{
|
||||
this.setOrigin(this.frame.pivotX, this.frame.pivotY);
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue