Skip to content

Commit

Permalink
Change enabling shortest for inner walls strategy
Browse files Browse the repository at this point in the history
CURA-12164
With or without "Optimize Wall Printing Order", it remains valid to have
the "shortest" seam strategy for inner walls. It may not work in some
situations, but will do its best and should actually work in all common
cases.
  • Loading branch information
wawanbreton committed Oct 18, 2024
1 parent a912456 commit a474a2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/InsetOrderOptimizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ bool InsetOrderOptimizer::addToLayer()
const bool current_extruder_is_wall_x = wall_x_extruder_nr_ == extruder_nr_;

const bool reverse = shouldReversePath(use_one_extruder, current_extruder_is_wall_x, outer_to_inner);
const bool use_shortest_for_inner_walls = ! pack_by_inset && outer_to_inner;
const bool use_shortest_for_inner_walls = outer_to_inner;
auto walls_to_be_added = getWallsToBeAdded(reverse, use_one_extruder);

const auto order = pack_by_inset ? getInsetOrder(walls_to_be_added, outer_to_inner) : getRegionOrder(walls_to_be_added, outer_to_inner);
Expand Down

0 comments on commit a474a2b

Please sign in to comment.