Fix First swich between show/hide support structure and pad

This commit is contained in:
Filip Sykala - NTB T15p 2025-02-25 11:48:08 +01:00 committed by Lukas Matena
parent 33db1f3a4c
commit 119609b5c6

View File

@ -731,9 +731,15 @@ RENDER_AGAIN:
if (draw_view_mode(m_show_support_structure, m_icons)){
show_sla_supports(m_show_support_structure);
if (m_show_support_structure)
if (m_show_support_structure) {
if (m_normal_cache.empty()) {
// first click also have to generate point
auto_generate();
} else {
reslice_until_step(slaposPad);
}
}
}
const char *support_points_density = "support_points_density_relative";
float density = static_cast<const ConfigOptionInt*>(get_config_options({support_points_density})[0])->value;