mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-18 13:33:51 +00:00
The Eraser reports angleMode, roundnessMode, angleVariation and roundnessVariation, but the check before tool.setOption sent every key it did not list to the true-or-false check, so the Freehand dialog's OK for the Eraser failed. sizeMode was also limited to fixed and pressure for the Eraser, which takes every mode. The gesture tools' check now takes each mode (any of the six for the Eraser, fixed or pressure for the Blob Brush's size), the angle variation from 0 to 180 and the roundness variation from 0 to 100, and names its true-or-false options instead of defaulting to them. A new test checks that every tool in the catalog takes back the options it reports, apart from the state it reports and does not take.