ENH: don't calculate overhang degree if disable overhang slow down

When the model has no overhang, user may disable overhang
slowing down.
In this case, it's unnecessary to calculate overhang
degree which make slicing slow when model is complex.

This is improvement for github issue #331.

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: I2eaeca3ee4068f76709fe97535bbf05c0d27c062
This commit is contained in:
salt.wei authored and Lane.Wei committed 2022-10-20 19:34:37 +08:00
1 parent 81da77d1e0
commit fd0f22b771
2 files changed
+33 -15

No files matched your search

+2 -2
View File
@@ -779,6 +779,8 @@ bool PrintObject::invalidate_state_by_config_options(
|| opt_key == "fuzzy_skin_thickness"
|| opt_key == "fuzzy_skin_point_distance"
|| opt_key == "detect_overhang_wall"
//BBS
|| opt_key == "enable_overhang_speed"
|| opt_key == "detect_thin_wall") {
steps.emplace_back(posPerimeters);
steps.emplace_back(posSupportMaterial);
@@ -794,8 +796,6 @@ bool PrintObject::invalidate_state_by_config_options(
opt_key == "seam_position"
|| opt_key == "support_speed"
|| opt_key == "support_interface_speed"
//BBS
|| opt_key == "enable_overhang_speed"
|| opt_key == "overhang_1_4_speed"
|| opt_key == "overhang_2_4_speed"
|| opt_key == "overhang_3_4_speed"