Fixed adding support, text stuff.
This commit is contained in:
parent
f03bcf7d89
commit
3715e1f156
12
main.cpp
12
main.cpp
@ -57,12 +57,12 @@ int main(int argc, char **argv)
|
||||
|
||||
// Bottom pattern choices
|
||||
command += " --bottom-infill-pattern \"";
|
||||
command += choose_pattern("Bottom Infill");
|
||||
command += choose_pattern("bottom infill");
|
||||
command += "\"";
|
||||
|
||||
// Top pattern choices
|
||||
command += " --top-infill-pattern \"";
|
||||
command += choose_pattern("Top Infill");
|
||||
command += choose_pattern("top infill");
|
||||
command += "\"";
|
||||
|
||||
// Add filename
|
||||
@ -186,11 +186,11 @@ string pick_option(const string& name, const vector<string>& options)
|
||||
return options[0];
|
||||
}
|
||||
|
||||
printf("Choose %s configuration:\n", name.c_str());
|
||||
printf("Choose %s:\n", name.c_str());
|
||||
i = 1;
|
||||
for (it = options.begin(); it != options.end(); ++it)
|
||||
{
|
||||
printf("%-2d - %s\n", i, it->c_str());
|
||||
printf("%2d - %s\n", i, it->c_str());
|
||||
++i;
|
||||
}
|
||||
|
||||
@ -220,9 +220,9 @@ string choose_support()
|
||||
options.push_back("Do not generate support");
|
||||
options.push_back("Generate support");
|
||||
|
||||
if (pick_option("Support", options) == options[1])
|
||||
if (pick_option("support", options) == options[1])
|
||||
{
|
||||
return "--support-material";
|
||||
return " --support-material";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user