diff --git a/CHANGELOG.md b/CHANGELOG.md index 4175ed0e4..f73234b80 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -120,6 +120,7 @@ The following changes took place in the Pointer class: * The ScaleManager full screen call had an arrow function in it. Despite being within a conditional block of code it still broke really old browsers like IE11, so has been removed. Fix #4530 (thanks @jorbascrumps @CNDW) * `Game.getTime` would return `NaN` because it incorrectly accessed the time value from the TimeStep. * Text with a `fixedWidth` or `fixedHeight` could cause the canvas to be cropped if less than the size of the Text itself (thanks @rexrainbow) +* Changing the `radius` of an Arc Game Object wouldn't update the size, causing origin issues. It now updates the size and origin correctly in WebGL. Fix #4542 (thanks @@PhaserEditor2D) ### Examples, Documentation and TypeScript diff --git a/src/gameobjects/shape/arc/Arc.js b/src/gameobjects/shape/arc/Arc.js index 5cfb57110..09580f982 100644 --- a/src/gameobjects/shape/arc/Arc.js +++ b/src/gameobjects/shape/arc/Arc.js @@ -164,6 +164,8 @@ var Arc = new Class({ { this.geom.radius = value; + this.setSize(value, value); + this.updateDisplayOrigin(); this.updateData(); }