Do not show the wipe tower in 3D scene when only one extruder is used
This commit is contained in:
parent
4d272b09b1
commit
ca3c6ecd9e
@ -2258,8 +2258,9 @@ void GCodeViewer::load_shells(const Print& print)
|
|||||||
const WipeTowerData& wipe_tower_data = print.wipe_tower_data(extruders_count);
|
const WipeTowerData& wipe_tower_data = print.wipe_tower_data(extruders_count);
|
||||||
const float depth = wipe_tower_data.depth;
|
const float depth = wipe_tower_data.depth;
|
||||||
const float brim_width = wipe_tower_data.brim_width;
|
const float brim_width = wipe_tower_data.brim_width;
|
||||||
m_shells.volumes.load_wipe_tower_preview(config.wipe_tower_x, config.wipe_tower_y, config.wipe_tower_width, depth, max_z, config.wipe_tower_cone_angle, config.wipe_tower_rotation_angle,
|
if (depth != 0.)
|
||||||
!print.is_step_done(psWipeTower), brim_width);
|
m_shells.volumes.load_wipe_tower_preview(config.wipe_tower_x, config.wipe_tower_y, config.wipe_tower_width, depth, max_z, config.wipe_tower_cone_angle, config.wipe_tower_rotation_angle,
|
||||||
|
!print.is_step_done(psWipeTower), brim_width);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2559,17 +2559,19 @@ void GLCanvas3D::reload_scene(bool refresh_immediately, bool force_full_scene_re
|
|||||||
// Height of a print (Show at least a slab).
|
// Height of a print (Show at least a slab).
|
||||||
const double height = height_real < 0.f ? std::max(m_model->max_z(), 10.0) : height_real;
|
const double height = height_real < 0.f ? std::max(m_model->max_z(), 10.0) : height_real;
|
||||||
|
|
||||||
#if ENABLE_OPENGL_ES
|
if (depth != 0.) {
|
||||||
int volume_idx_wipe_tower_new = m_volumes.load_wipe_tower_preview(
|
#if ENABLE_OPENGL_ES
|
||||||
x, y, w, depth, (float)height, ca, a, !print->is_step_done(psWipeTower),
|
int volume_idx_wipe_tower_new = m_volumes.load_wipe_tower_preview(
|
||||||
bw, &m_wipe_tower_mesh);
|
x, y, w, depth, (float)height, ca, a, !print->is_step_done(psWipeTower),
|
||||||
#else
|
bw, &m_wipe_tower_mesh);
|
||||||
int volume_idx_wipe_tower_new = m_volumes.load_wipe_tower_preview(
|
#else
|
||||||
x, y, w, depth, (float)height, ca, a, !print->is_step_done(psWipeTower),
|
int volume_idx_wipe_tower_new = m_volumes.load_wipe_tower_preview(
|
||||||
bw);
|
x, y, w, depth, (float)height, ca, a, !print->is_step_done(psWipeTower),
|
||||||
#endif // ENABLE_OPENGL_ES
|
bw);
|
||||||
if (volume_idx_wipe_tower_old != -1)
|
#endif // ENABLE_OPENGL_ES
|
||||||
map_glvolume_old_to_new[volume_idx_wipe_tower_old] = volume_idx_wipe_tower_new;
|
if (volume_idx_wipe_tower_old != -1)
|
||||||
|
map_glvolume_old_to_new[volume_idx_wipe_tower_old] = volume_idx_wipe_tower_new;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user