Fixed several issues with drawing ellipses by bjorn · Pull Request #3776 · mapeditor/tiled (original) (raw)

@bjorn

I've replaced the ellipse drawing algorithms with implementations by Zingl Alois, originally written in 2012 and published under MIT license.

This addresses several issues with the previously used implementations of pointsOnEllipse and ellipseRegion:

The Shape Fill tool was adjusted such that drawing ellipses work in bounding-box mode by default. The Alt modifier now toggles to center + radius mode, which also applies when drawing rectangles.

Closes mapeditor#3775