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