FIX: fix an flush_into_support bug for copied objects
Copied objects share extrusion paths but they should be treated seperately. Signed-off-by: yifan.wu <yifan.wu@bambulab.com> Change-Id: I891c70d261a2fa5b198ec776694d74eeb8fd987f
This commit is contained in:
parent
92c6f85586
commit
946ba89cd7
|
@ -2562,7 +2562,7 @@ GCode::LayerResult GCode::process_layer(
|
|||
for (const LayerToPrint &layer_to_print : layers) {
|
||||
if (layer_to_print.support_layer != nullptr) {
|
||||
const SupportLayer &support_layer = *layer_to_print.support_layer;
|
||||
const PrintObject &object = *support_layer.object();
|
||||
const PrintObject& object = *layer_to_print.original_object;
|
||||
if (! support_layer.support_fills.entities.empty()) {
|
||||
ExtrusionRole role = support_layer.support_fills.role();
|
||||
bool has_support = role == erMixed || role == erSupportMaterial || role == erSupportTransition;
|
||||
|
@ -2647,7 +2647,7 @@ GCode::LayerResult GCode::process_layer(
|
|||
// BBS
|
||||
if (layer_to_print.tree_support_layer != nullptr) {
|
||||
const TreeSupportLayer& tree_support_layer = *layer_to_print.tree_support_layer;
|
||||
const PrintObject& object = *tree_support_layer.object();
|
||||
const PrintObject& object = *layer_to_print.original_object;
|
||||
if (!tree_support_layer.support_fills.entities.empty()) {
|
||||
ExtrusionRole role = tree_support_layer.support_fills.role();
|
||||
bool has_support = role == erMixed || role == erSupportMaterial || role == erSupportTransition;
|
||||
|
|
Loading…
Reference in New Issue