mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-01 04:12:01 +08:00
try fix cog
This commit is contained in:
parent
e67181d2d4
commit
fbd9f1506f
@ -284,7 +284,7 @@ finished:
|
|||||||
float time_stretch_final = 0.f;
|
float time_stretch_final = 0.f;
|
||||||
for (auto it = it_begin; it != it_end; ++ it)
|
for (auto it = it_begin; it != it_end; ++ it)
|
||||||
time_stretch_final += (*it)->time_stretch_when_slowing_down_to_feedrate(new_feedrate);
|
time_stretch_final += (*it)->time_stretch_when_slowing_down_to_feedrate(new_feedrate);
|
||||||
assert(std::abs(time_stretch - time_stretch_final) < EPSILON);
|
//assert(std::abs(time_stretch - time_stretch_final) < EPSILON);
|
||||||
}
|
}
|
||||||
#endif /* NDEBUG */
|
#endif /* NDEBUG */
|
||||||
|
|
||||||
|
@ -696,7 +696,14 @@ bool PlaterPresetComboBox::switch_to_tab()
|
|||||||
|
|
||||||
wxGetApp().tab_panel()->SetSelection(page_id);
|
wxGetApp().tab_panel()->SetSelection(page_id);
|
||||||
// Switch to Settings NotePad
|
// Switch to Settings NotePad
|
||||||
wxGetApp().mainframe->select_tab(MainFrame::ETabType::LastSettings);
|
if(m_type == Preset::Type::TYPE_PRINT || m_type == Preset::Type::TYPE_SLA_PRINT)
|
||||||
|
wxGetApp().mainframe->select_tab(MainFrame::ETabType::PrintSettings);
|
||||||
|
else if (m_type == Preset::Type::TYPE_FILAMENT || m_type == Preset::Type::TYPE_SLA_MATERIAL)
|
||||||
|
wxGetApp().mainframe->select_tab(MainFrame::ETabType::FilamentSettings);
|
||||||
|
else if (m_type == Preset::Type::TYPE_PRINTER)
|
||||||
|
wxGetApp().mainframe->select_tab(MainFrame::ETabType::PrinterSettings);
|
||||||
|
else
|
||||||
|
wxGetApp().mainframe->select_tab(MainFrame::ETabType::LastSettings);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user