Skip to content

Commit

Permalink
Fixed wrong placement of branches on buildplate when using rest on an…
Browse files Browse the repository at this point in the history
…y surface preference
  • Loading branch information
ThomasRahm committed Sep 20, 2022
1 parent 11742dd commit 26ebae0
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 @@ -1980,6 +1980,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 26ebae0

Please sign in to comment.