Fix crash when slicing multi-material print with wipe tower (#12682)

The WipeTower2 code path never called construct_mesh(), leaving
wipe_tower_mesh_data as std::nullopt. GCode export then dereferenced
it unconditionally, triggering an assertion failure / crash.
This commit is contained in:
SoftFever
2026-03-09 13:31:11 +08:00
committed by GitHub
parent 4f8097f7f7
commit eb6da907a9
4 changed files with 9 additions and 1 deletions

View File

@@ -770,6 +770,7 @@ struct WipeTowerData
number_of_toolchanges = -1;
depth = 0.f;
brim_width = 0.f;
rib_offset = Vec2f::Zero();
wipe_tower_mesh_data = std::nullopt;
}
void construct_mesh(float width, float depth, float height, float brim_width, bool is_rib_wipe_tower, float rib_width, float rib_length, bool fillet_wall);