Wipe tower: fix the height of preview in 3D scene

This commit is contained in:
Lukas Matena 2023-03-30 14:06:23 +02:00
parent b14855beda
commit 3d855580ce
2 changed files with 5 additions and 2 deletions

View file

@ -1353,6 +1353,7 @@ const WipeTowerData& Print::wipe_tower_data(size_t extruders_cnt) const
float layer_height = 0.2f; // just assume fixed value, it will still be better than before.
const_cast<Print*>(this)->m_wipe_tower_data.depth = (maximum/layer_height)/width;
const_cast<Print*>(this)->m_wipe_tower_data.height = -1.f; // unknown yet
}
return m_wipe_tower_data;