(cherry picked from commit prusa3d/PrusaSlicer@76d1d4949b)
(cherry picked from commit prusa3d/PrusaSlicer@d0d89a4d5b)