Skip to content

Commit 3422569

Browse files
committed
setFrame will use a custom pivot, if set.
1 parent b525ecb commit 3422569

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/gameobjects/components/Texture.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@ var Texture = {
7575
this.renderFlags |= _FLAG;
7676
}
7777

78+
if (this.frame.customPivot)
79+
{
80+
this.setOrigin(this.frame.pivotX, this.frame.pivotY);
81+
}
82+
7883
return this;
7984
}
8085

0 commit comments

Comments
 (0)