ENH: CLI: reset plate_to_slice to 0 when slicing stls

github: https://github.com/bambulab/BambuStudio/issues/3453

Change-Id: I5c740f3435896ff132f1ad8c527b78744402cb51
This commit is contained in:
lane.wei 2024-01-22 14:34:13 +08:00 committed by Lane.Wei
parent 39ae64fc53
commit eb06a769b3
1 changed files with 6 additions and 0 deletions

View File

@ -1462,6 +1462,12 @@ int CLI::run(int argc, char **argv)
m_models.push_back(std::move(model));
}
if (!is_bbl_3mf && plate_to_slice > 0)
{
BOOST_LOG_TRIVIAL(warning) << boost::format("%1%: not support to slice plate %2%, reset to 0")%__LINE__ %plate_to_slice;
plate_to_slice = 0;
}
//load custom gcode file
std::map<int, CustomGCode::Info> custom_gcodes_map;
if (!custom_gcode_file.empty()) {