(cherry picked from commit prusa3d/PrusaSlicer@f12e0b4d21) Co-authored-by: Lukas Matena <lukasmatena@seznam.cz>