Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVojtech Bubnik <bubnikv@gmail.com>2021-09-20 15:40:56 +0300
committerVojtech Bubnik <bubnikv@gmail.com>2021-09-20 15:41:19 +0300
commitf484953a5a1fecd878242ca8d2f5175151b81678 (patch)
tree3015db58079badb3f478796a54ba37a307ce3a64 /src/libslic3r
parent7dabcf0646865ab597108538430f84f053fe7b9b (diff)
Fix of Print setting changes not applied to all copies if one copy rotated #6971
Diffstat (limited to 'src/libslic3r')
-rw-r--r--src/libslic3r/PrintApply.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libslic3r/PrintApply.cpp b/src/libslic3r/PrintApply.cpp
index 10960c535..da26f905c 100644
--- a/src/libslic3r/PrintApply.cpp
+++ b/src/libslic3r/PrintApply.cpp
@@ -1300,8 +1300,10 @@ Print::ApplyStatus Print::apply(const Model &model, DynamicPrintConfig new_full_
num_extruders,
painting_extruders,
*print_object_regions,
- [&print_object, &update_apply_status](const PrintRegionConfig &old_config, const PrintRegionConfig &new_config, const t_config_option_keys &diff_keys) {
- update_apply_status(print_object.invalidate_state_by_config_options(old_config, new_config, diff_keys));
+ [&print_object, it_print_object, it_print_object_end, &update_apply_status](const PrintRegionConfig &old_config, const PrintRegionConfig &new_config, const t_config_option_keys &diff_keys) {
+ for (auto it = it_print_object; it != it_print_object_end; ++it)
+ if ((*it)->m_shared_regions != nullptr)
+ update_apply_status((*it)->invalidate_state_by_config_options(old_config, new_config, diff_keys));
})) {
// Regions are valid, just keep them.
} else {