FIX: Checking support necessity not working

Only early stop detect_overhangs if support is disabled AND not checking support necessity.

jira: STUDIO-6158
Change-Id: I2d9662231d941827d6392d57344f7d911f641e09
(cherry picked from commit b811a6031d1afe0e7b1cb73050fe6391a65411ef)
(cherry picked from commit fa61ee6abdb4b04a2141b3f8ea9e2e8a789b7881)
This commit is contained in:
Arthur 2024-02-01 17:39:37 +08:00 committed by Noisyfox
parent a2e5332eef
commit 31a5f0d523
3 changed files with 17 additions and 16 deletions

View file

@ -375,7 +375,7 @@ public:
*/
void generate();
void detect_overhangs(bool detect_first_sharp_tail_only=false);
void detect_overhangs(bool check_support_necessity = false);
int avg_node_per_layer = 0;
@ -484,7 +484,7 @@ private:
* If a node is already at that position in the layer, the nodes are merged.
*/
void insert_dropped_node(std::vector<SupportNode*>& nodes_layer, SupportNode* node);
void create_tree_support_layers(bool support_enabled=true);
void create_tree_support_layers();
void generate_toolpaths();
// get unscaled radius of node
coordf_t calc_branch_radius(coordf_t base_radius, size_t layers_to_top, size_t tip_layers, double diameter_angle_scale_factor);