ENH: CLI: remove some warnings
JIRA: no jira Change-Id: I41fa9248cd619494a9f6bf8db26988330a7fbbdd (cherry picked from commit fae0b29f52fa1da6a18c7691329274609d043364)
This commit is contained in:
parent
d3167336df
commit
ef3d25eb68
|
@ -1344,7 +1344,7 @@ int CLI::run(int argc, char **argv)
|
||||||
//BBS: add plate data related logic
|
//BBS: add plate data related logic
|
||||||
PlateDataPtrs plate_data_src;
|
PlateDataPtrs plate_data_src;
|
||||||
std::vector<plate_obj_size_info_t> plate_obj_size_infos;
|
std::vector<plate_obj_size_info_t> plate_obj_size_infos;
|
||||||
int arrange_option;
|
//int arrange_option;
|
||||||
int plate_to_slice = 0, filament_count = 0, duplicate_count = 0, real_duplicate_count = 0;
|
int plate_to_slice = 0, filament_count = 0, duplicate_count = 0, real_duplicate_count = 0;
|
||||||
bool first_file = true, is_bbl_3mf = false, need_arrange = true, has_thumbnails = false, up_config_to_date = false, normative_check = true, duplicate_single_object = false, use_first_fila_as_default = false, minimum_save = false, enable_timelapse = false;
|
bool first_file = true, is_bbl_3mf = false, need_arrange = true, has_thumbnails = false, up_config_to_date = false, normative_check = true, duplicate_single_object = false, use_first_fila_as_default = false, minimum_save = false, enable_timelapse = false;
|
||||||
bool allow_rotations = true, skip_modified_gcodes = false, avoid_extrusion_cali_region = false, skip_useless_pick = false, allow_newer_file = false;
|
bool allow_rotations = true, skip_modified_gcodes = false, avoid_extrusion_cali_region = false, skip_useless_pick = false, allow_newer_file = false;
|
||||||
|
@ -1701,7 +1701,7 @@ int CLI::run(int argc, char **argv)
|
||||||
{
|
{
|
||||||
ModelObject* object = model.objects[obj_index];
|
ModelObject* object = model.objects[obj_index];
|
||||||
|
|
||||||
for (unsigned int clone_index = 1; clone_index < clone_count; clone_index++)
|
for (int clone_index = 1; clone_index < clone_count; clone_index++)
|
||||||
{
|
{
|
||||||
ModelObject* newObj = model.add_object(*object);
|
ModelObject* newObj = model.add_object(*object);
|
||||||
newObj->name = object->name +"_"+ std::to_string(clone_index+1);
|
newObj->name = object->name +"_"+ std::to_string(clone_index+1);
|
||||||
|
|
|
@ -884,7 +884,7 @@ void PlateData::parse_filament_info(GCodeProcessorResult *result)
|
||||||
bool extract_object_model()
|
bool extract_object_model()
|
||||||
{
|
{
|
||||||
mz_zip_archive archive;
|
mz_zip_archive archive;
|
||||||
mz_zip_archive_file_stat stat;
|
//mz_zip_archive_file_stat stat;
|
||||||
mz_zip_zero_struct(&archive);
|
mz_zip_zero_struct(&archive);
|
||||||
|
|
||||||
if (!open_zip_reader(&archive, zip_path)) {
|
if (!open_zip_reader(&archive, zip_path)) {
|
||||||
|
@ -7562,7 +7562,7 @@ void PlateData::parse_filament_info(GCodeProcessorResult *result)
|
||||||
|
|
||||||
if (!m_skip_model && instance_size > 0)
|
if (!m_skip_model && instance_size > 0)
|
||||||
{
|
{
|
||||||
for (unsigned int j = 0; j < instance_size; ++j)
|
for (int j = 0; j < instance_size; ++j)
|
||||||
{
|
{
|
||||||
stream << " <" << INSTANCE_TAG << ">\n";
|
stream << " <" << INSTANCE_TAG << ">\n";
|
||||||
int obj_id = plate_data->objects_and_instances[j].first;
|
int obj_id = plate_data->objects_and_instances[j].first;
|
||||||
|
|
Loading…
Reference in New Issue