mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-01-01 12:20:47 -07:00
FIX: the wipe tower is not show when enable smooth timelapse
jira:none Change-Id: Iab7994e1ba15d09effe9ad57aebbe9520459f7cd (cherry picked from commit c6e117fef0efbc0f921db961c1cbf68b895bf75a)
This commit is contained in:
parent
6dff86bc1c
commit
bdf5cc9063
2 changed files with 11 additions and 3 deletions
|
|
@ -2459,7 +2459,7 @@ void WipeTower::reset_block_status()
|
|||
}
|
||||
}
|
||||
|
||||
void WipeTower::update_start_depth_for_blocks()
|
||||
void WipeTower::update_all_layer_depth(float wipe_tower_depth)
|
||||
{
|
||||
m_wipe_tower_depth = 0.f;
|
||||
float start_offset = m_perimeter_width;
|
||||
|
|
@ -2480,6 +2480,14 @@ void WipeTower::update_start_depth_for_blocks()
|
|||
}
|
||||
if (m_wipe_tower_depth > 0)
|
||||
m_wipe_tower_depth += start_offset;
|
||||
|
||||
if (m_enable_timelapse_print) {
|
||||
if (is_approx(m_wipe_tower_depth, 0.f))
|
||||
m_wipe_tower_depth = wipe_tower_depth;
|
||||
for (WipeTowerInfo &plan_info : m_plan) {
|
||||
plan_info.depth = m_wipe_tower_depth;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void WipeTower::generate_wipe_tower_blocks()
|
||||
|
|
@ -2621,7 +2629,7 @@ void WipeTower::plan_tower_new()
|
|||
}
|
||||
}
|
||||
|
||||
update_start_depth_for_blocks();
|
||||
update_all_layer_depth(max_depth);
|
||||
}
|
||||
|
||||
int WipeTower::get_wall_filament_for_all_layer()
|
||||
|
|
|
|||
|
|
@ -339,7 +339,7 @@ public:
|
|||
|
||||
void plan_tower_new();
|
||||
void generate_wipe_tower_blocks();
|
||||
void update_start_depth_for_blocks();
|
||||
void update_all_layer_depth(float wipe_tower_depth);
|
||||
|
||||
ToolChangeResult tool_change_new(size_t new_tool);
|
||||
NozzleChangeResult nozzle_change_new(int old_filament_id, int new_filament_id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue