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

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsupermerill <merill@free.fr>2022-08-28 15:32:44 +0300
committersupermerill <merill@free.fr>2022-09-16 17:11:04 +0300
commitcfc7c8d2f1fd940d37dfdb22180e96de30af98aa (patch)
treeab0dc49a5bf8b00a3ee2ad997b10ef93a10123f2
parentb1bce7bc588a6ca992efcb1f087a193dd1908f43 (diff)
fix string/empty custom variable
supermerill/SuperSlicer#3126
-rw-r--r--src/libslic3r/PlaceholderParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libslic3r/PlaceholderParser.cpp b/src/libslic3r/PlaceholderParser.cpp
index 1e8325786..b13d689db 100644
--- a/src/libslic3r/PlaceholderParser.cpp
+++ b/src/libslic3r/PlaceholderParser.cpp
@@ -1721,7 +1721,7 @@ void PlaceholderParser::append_custom_variables(std::map<std::string, std::vecto
}
}
//if nothing, then it's strings
- if (is_not_string && is_not_numeric && is_not_bool) {
+ if (!is_not_string && is_not_numeric && is_not_bool) {
string_values = values;
is_not_string = false;
}