mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-14 01:15:52 +08:00
Fix minor spacing/formatting issues.
This commit is contained in:
parent
c8cfe0d659
commit
156b08d41b
@ -56,7 +56,7 @@ int CLI::run(int argc, char **argv) {
|
|||||||
if (cli_transform_config_def.has(opt_key)) this->transforms.push_back(opt_key);
|
if (cli_transform_config_def.has(opt_key)) this->transforms.push_back(opt_key);
|
||||||
}
|
}
|
||||||
// load config files supplied via --load
|
// load config files supplied via --load
|
||||||
for (auto const &file : config.getStrings("load",{})) {
|
for (auto const &file : config.getStrings("load", {})) {
|
||||||
try{
|
try{
|
||||||
if (!boost::filesystem::exists(file)) {
|
if (!boost::filesystem::exists(file)) {
|
||||||
if (config.getBool("ignore_nonexistent_file", false)) {
|
if (config.getBool("ignore_nonexistent_file", false)) {
|
||||||
@ -435,7 +435,7 @@ CLI::output_filepath(const Model &model, IO::ExportFormat format) const {
|
|||||||
const std::string filename = pp.process(filename_format);
|
const std::string filename = pp.process(filename_format);
|
||||||
|
|
||||||
// use --output when available
|
// use --output when available
|
||||||
std::string outfile{ this->config.getString("output","") };
|
std::string outfile{ this->config.getString("output", "") };
|
||||||
if (!outfile.empty()) {
|
if (!outfile.empty()) {
|
||||||
// if we were supplied a directory, use it and append our automatically generated filename
|
// if we were supplied a directory, use it and append our automatically generated filename
|
||||||
const boost::filesystem::path out(outfile);
|
const boost::filesystem::path out(outfile);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user