Commit 29ad1486 authored by Dmitry Kazakov's avatar Dmitry Kazakov

Fix keeping "eraser switch size/opacity" option when saving the brush

Every reload operation resets our temporary fields of the preset, like
"saved eraser size" and "saved eraser opacity". So we should avoid it
without very high need.

BUG:393499
parent a32ca9d9
......@@ -237,8 +237,10 @@ void KisPresetSaveWidget::savePreset()
if (curPreset->image().isNull()) {
curPreset->setImage(brushPresetThumbnailWidget->cutoutOverlay());
}
// we should not load() the brush right after saving because it will reset all our saved
// eraser size and opacity values
curPreset->save();
curPreset->load();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment