Fix: crash by wipe_tower_data's null pointer

jira: none
Change-Id: Ic33c40f7dc27b6ca18a44a790c4e4e01d0305792
(cherry picked from commit 04d64d5e006ec11fecea73f324d1c129d5e02a42)
This commit is contained in:
jiangkai.zhao 2025-03-10 21:48:49 +08:00 committed by Noisyfox
parent a8b5bfd809
commit 9dacc33e72

View file

@ -2946,7 +2946,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;