Skip to content

Change isometric grid angles type from int to qreal

This MR changes the type of the angles used in the isometric grid from int to qreal, to allow angles such as 26.57, commonly used for example to make isometric art for games.

NOTE: Depending on the decimals that the angle has, the value can be stored in the xml attribute in the document with formats "12.34", "12.3" (if the number is 12.30) or "12" if the number is 12.00). In the case it is stored with decimals, previous versions of krita will load that angle as 0 (default int value). But if the angle is a whole number then it should be no problem.

Formalities Checklist

  • I confirmed this builds.
  • I confirmed Krita ran and the relevant functions work.
  • I tested the relevant unit tests and can confirm they are not broken. (If not possible, don't hesitate to ask for help!)
  • I made sure my commits build individually and have good descriptions as per KDE guidelines.
  • I made sure my code conforms to the standards set in the HACKING file.
  • I can confirm the code is licensed and attributed appropriately, and that unattributed code is mine, as per KDE Licensing Policy.
Edited by Deif Lou

Merge request reports