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.

This commit is contained in:
Richard Davey 2019-07-15 16:30:08 +01:00
parent 7d2b34f8ed
commit 41d007fe67

View file

@ -186,8 +186,8 @@ var Origin = {
*/
updateDisplayOrigin: function ()
{
this._displayOriginX = Math.round(this.originX * this.width);
this._displayOriginY = Math.round(this.originY * this.height);
this._displayOriginX = this.originX * this.width;
this._displayOriginY = this.originY * this.height;
return this;
}