setFrame will use a custom pivot, if set.

This commit is contained in:
Richard Davey 2018-02-09 15:21:39 +00:00
parent b525ecb502
commit 3422569a4a

View file

@ -75,6 +75,11 @@ var Texture = {
this.renderFlags |= _FLAG;
}
if (this.frame.customPivot)
{
this.setOrigin(this.frame.pivotX, this.frame.pivotY);
}
return this;
}