mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 12:43:26 +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