Save and restore Fill Tool's Autopaint Lines (smart raster) setting

This commit is contained in:
manongjohn 2023-09-23 11:04:13 -04:00
parent 3d94b2088c
commit dbe24d037d

View file

@ -77,6 +77,7 @@ TEnv::IntVar FillOnlySavebox("InknpaintFillOnlySavebox", 0);
TEnv::IntVar FillReferenced("InknpaintFillReferenced", 0); TEnv::IntVar FillReferenced("InknpaintFillReferenced", 0);
TEnv::StringVar RasterGapSetting("RasterGapSetting", "Ignore Gaps"); TEnv::StringVar RasterGapSetting("RasterGapSetting", "Ignore Gaps");
TEnv::IntVar AutoPaintLines("InknpaintAutoPaintLines", 1);
extern TEnv::DoubleVar AutocloseDistance; extern TEnv::DoubleVar AutocloseDistance;
extern TEnv::DoubleVar AutocloseAngle; extern TEnv::DoubleVar AutocloseAngle;
extern TEnv::IntVar AutocloseInk; extern TEnv::IntVar AutocloseInk;
@ -2722,6 +2723,7 @@ bool FillTool::onPropertyChanged(std::string propertyName) {
// Autopaint // Autopaint
else if (propertyName == m_autopaintLines.getName()) { else if (propertyName == m_autopaintLines.getName()) {
AutoPaintLines = (int)m_autopaintLines.getValue();
rectPropChangedflag = true; rectPropChangedflag = true;
} }
@ -2991,6 +2993,8 @@ void FillTool::onActivate() {
m_frameRange.setValue(FillRange ? 1 : 0); m_frameRange.setValue(FillRange ? 1 : 0);
m_fillOnlySavebox.setValue(FillOnlySavebox ? 1 : 0); m_fillOnlySavebox.setValue(FillOnlySavebox ? 1 : 0);
m_referenced.setValue(FillReferenced ? 1 : 0); m_referenced.setValue(FillReferenced ? 1 : 0);
m_autopaintLines.setValue(AutoPaintLines ? 1 : 0);
m_firstTime = false; m_firstTime = false;
if (m_fillType.getValue() != NORMALFILL) { if (m_fillType.getValue() != NORMALFILL) {