Skip to content

Commit 41d007f

Browse files
committed
Origin.updateDisplayOrigin no longer applies a Math.floor to the display origins, allowing you to have a 0.x origin for a Game Object that only has a width or height of 1. This fixes issues with things like 1x1 rectangles displaying incorrectly during rendering.
1 parent 7d2b34f commit 41d007f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/gameobjects/components/Origin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,8 @@ var Origin = {
186186
*/
187187
updateDisplayOrigin: function ()
188188
{
189-
this._displayOriginX = Math.round(this.originX * this.width);
190-
this._displayOriginY = Math.round(this.originY * this.height);
189+
this._displayOriginX = this.originX * this.width;
190+
this._displayOriginY = this.originY * this.height;
191191

192192
return this;
193193
}

0 commit comments

Comments
 (0)