Skip to content

Commit

Permalink
Merge branch 'tree_support_2' into tree_support_2_error_detection
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasRahm committed Sep 20, 2022
2 parents d01f0b3 + 26ebae0 commit e41dbaf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/TreeSupport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2012,6 +2012,13 @@ bool TreeSupport::setToModelContact(std::vector<std::set<TreeSupportElement*>>&
delete checked[layer - layer_idx];
}

//If resting on the buildplate keep bp location
if (config.support_rest_preference != RestPreference::BUILDPLATE && last_successfull_layer == 0)
{
return false;
}


// Guess a point inside the influence area, in which the branch will be placed in.
Point best = checked[last_successfull_layer - layer_idx]->next_position;

Expand Down

0 comments on commit e41dbaf

Please sign in to comment.