Fix: crash by wipe_tower_data's null pointer

jira: none
Change-Id: Ic33c40f7dc27b6ca18a44a790c4e4e01d0305792
This commit is contained in:
jiangkai.zhao 2025-03-10 21:48:49 +08:00 committed by lane.wei
parent bf97aea2e4
commit 04d64d5e00
1 changed files with 1 additions and 1 deletions

View File

@ -3093,7 +3093,7 @@ void GLCanvas3D::reload_scene(bool refresh_immediately, bool force_full_scene_re
coordf_t plate_bbox_x_max_local_coord = plate_bbox_2d.max(0) - plate_origin(0);
coordf_t plate_bbox_y_max_local_coord = plate_bbox_2d.max(1) - plate_origin(1);
if (!current_print->is_step_done(psWipeTower)) {
if (!current_print->is_step_done(psWipeTower) || !current_print->wipe_tower_data().wipe_tower_mesh_data) {
// update for wipe tower position
{
bool need_update = false;