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:
authorbubnikv <bubnikv@gmail.com>2017-05-30 21:09:34 +0300
committerbubnikv <bubnikv@gmail.com>2017-05-30 21:09:34 +0300
commit102329c54da5e02416f3bed4677a2293a44f2164 (patch)
tree13f1276209a4777c7d57b5bb1a0f67258017eb97 /xs/src/libslic3r/PrintObject.cpp
parente1ca1a82fb57367fb54e417d2ca19d071e43755b (diff)
Further refactoring, C++11 conversion and code simplification.
Diffstat (limited to 'xs/src/libslic3r/PrintObject.cpp')
-rw-r--r--xs/src/libslic3r/PrintObject.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/xs/src/libslic3r/PrintObject.cpp b/xs/src/libslic3r/PrintObject.cpp
index 71cd55a16..b5e3037d4 100644
--- a/xs/src/libslic3r/PrintObject.cpp
+++ b/xs/src/libslic3r/PrintObject.cpp
@@ -128,11 +128,14 @@ SupportLayer* PrintObject::add_support_layer(int id, coordf_t height, coordf_t p
return support_layers.back();
}
+// Called by Print::apply_config().
+// This method only accepts PrintObjectConfig and PrintRegionConfig option keys.
bool PrintObject::invalidate_state_by_config_options(const std::vector<t_config_option_key> &opt_keys)
{
+ if (opt_keys.empty())
+ return false;
+
std::vector<PrintObjectStep> steps;
-
- // this method only accepts PrintObjectConfig and PrintRegionConfig option keys
for (const t_config_option_key &opt_key : opt_keys) {
if (opt_key == "perimeters"
|| opt_key == "extra_perimeters"