diff --git a/resources/profiles/BBL/filament/fdm_filament_common.json b/resources/profiles/BBL/filament/fdm_filament_common.json index c1c00b0c18..773ca042d7 100644 --- a/resources/profiles/BBL/filament/fdm_filament_common.json +++ b/resources/profiles/BBL/filament/fdm_filament_common.json @@ -108,6 +108,9 @@ "filament_wipe_distance": [ "nil" ], + "filament_prime_volume": [ + "45" + ], "filament_z_hop": [ "nil" ], diff --git a/resources/profiles/BBL/filament/fdm_filament_dual_common.json b/resources/profiles/BBL/filament/fdm_filament_dual_common.json index 77afe788f8..0d5e5afb02 100644 --- a/resources/profiles/BBL/filament/fdm_filament_dual_common.json +++ b/resources/profiles/BBL/filament/fdm_filament_dual_common.json @@ -43,6 +43,9 @@ "nil", "nil" ], + "filament_prime_volume": [ + "45" + ], "filament_z_hop": [ "nil", "nil" diff --git a/src/OrcaSlicer.cpp b/src/OrcaSlicer.cpp index e087106c99..e170bee276 100644 --- a/src/OrcaSlicer.cpp +++ b/src/OrcaSlicer.cpp @@ -3494,10 +3494,10 @@ int CLI::run(int argc, char **argv) float brim_width = brim_width_option->value; if (brim_width < 0) brim_width = WipeTower::get_auto_brim_by_height((float)plate_obj_size_info.obj_bbox.max.z()); - ConfigOptionFloat* volume_option = print_config.option("prime_volume", true); - float wipe_volume = volume_option->value; + ConfigOptionFloats* volume_option = print_config.option("filament_prime_volume", true); + std::vector wipe_volume = volume_option->values; - Vec3d wipe_tower_size = plate->estimate_wipe_tower_size(print_config, plate_obj_size_info.wipe_width, wipe_volume, filaments_cnt); + Vec3d wipe_tower_size = plate->estimate_wipe_tower_size(print_config, plate_obj_size_info.wipe_width, get_max_element(wipe_volume), filaments_cnt); plate_obj_size_info.wipe_depth = wipe_tower_size(1); Vec3d origin = plate->get_origin(); @@ -4226,9 +4226,10 @@ int CLI::run(int argc, char **argv) ConfigOptionFloats* wipe_y_option = m_print_config.option("wipe_tower_y", true); ConfigOptionFloat* width_option = m_print_config.option("prime_tower_width", true); ConfigOptionFloat* rotation_angle_option = m_print_config.option("wipe_tower_rotation_angle", true); - ConfigOptionFloat* volume_option = m_print_config.option("prime_volume", true); + ConfigOptionFloats *volume_option = m_print_config.option("filament_prime_volume", true); + std::vector wipe_volume = volume_option->values; - BOOST_LOG_TRIVIAL(info) << boost::format("prime_tower_width %1% wipe_tower_rotation_angle %2% prime_volume %3%") % width_option->value % rotation_angle_option->value % volume_option->value; + BOOST_LOG_TRIVIAL(info) << boost::format("prime_tower_width %1% wipe_tower_rotation_angle %2% prime_volume %3%") % width_option->value % rotation_angle_option->value % get_max_element(wipe_volume); wipe_x_option->set_at(&wt_x_opt, i, 0); wipe_y_option->set_at(&wt_y_opt, i, 0); @@ -4480,9 +4481,10 @@ int CLI::run(int argc, char **argv) ConfigOptionFloats* wipe_y_option = m_print_config.option("wipe_tower_y", true); ConfigOptionFloat* width_option = m_print_config.option("prime_tower_width", true); ConfigOptionFloat* rotation_angle_option = m_print_config.option("wipe_tower_rotation_angle", true); - ConfigOptionFloat* volume_option = m_print_config.option("prime_volume", true); + ConfigOptionFloats *volume_option = m_print_config.option("filament_prime_volume", true); + std::vector wipe_volume = volume_option->values; - BOOST_LOG_TRIVIAL(info) << boost::format("prime_tower_width %1% wipe_tower_rotation_angle %2% prime_volume %3%")%width_option->value %rotation_angle_option->value %volume_option->value ; + BOOST_LOG_TRIVIAL(info) << boost::format("prime_tower_width %1% wipe_tower_rotation_angle %2% prime_volume %3%")%width_option->value %rotation_angle_option->value %get_max_element(wipe_volume); for (int bedid = 0; bedid < MAX_PLATE_COUNT; bedid++) { @@ -4560,7 +4562,7 @@ int CLI::run(int argc, char **argv) } float w = dynamic_cast(m_print_config.option("prime_tower_width"))->value; float a = dynamic_cast(m_print_config.option("wipe_tower_rotation_angle"))->value; - float v = dynamic_cast(m_print_config.option("prime_volume"))->value; + std::vector v = dynamic_cast(m_print_config.option("filament_prime_volume"))->values; unsigned int filaments_cnt = plate_data_src[plate_to_slice-1]->slice_filaments_info.size(); if ((filaments_cnt == 0) || need_skip) { @@ -4583,7 +4585,7 @@ int CLI::run(int argc, char **argv) //float depth = v * (filaments_cnt - 1) / (layer_height * w); - Vec3d wipe_tower_size = cur_plate->estimate_wipe_tower_size(m_print_config, w, v, filaments_cnt); + Vec3d wipe_tower_size = cur_plate->estimate_wipe_tower_size(m_print_config, w, get_max_element(v), filaments_cnt); Vec3d plate_origin = cur_plate->get_origin(); int plate_width, plate_depth, plate_height; partplate_list.get_plate_size(plate_width, plate_depth, plate_height); @@ -4596,8 +4598,8 @@ int CLI::run(int argc, char **argv) BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << boost::format("arrange wipe_tower: wp_brim_width %1%")%wp_brim_width; } - BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << boost::format("arrange wipe_tower: x=%1%, y=%2%, width=%3%, depth=%4%, angle=%5%, prime_volume=%6%, filaments_cnt=%7%, layer_height=%8%, plate_width=%9%, plate_depth=%10%") - %x %y %w %depth %a %v %filaments_cnt %layer_height %plate_width %plate_depth; + BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << boost::format("arrange wipe_tower: x=%1%, y=%2%, width=%3%, depth=%4%, angle=%5%, prime_volume=%6%, filaments_cnt=%7%, layer_height=%8%, plate_width=%9%, plate_depth=%10%") % + x % y % w % depth % a % get_max_element(v) % filaments_cnt % layer_height % plate_width % plate_depth; if ((y + depth + margin + wp_brim_width) > (float)plate_depth) { y = (float)plate_depth - depth - margin - wp_brim_width; BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << boost::format("arrange wipe_tower: exceeds the border, change y to %1%, plate_depth=%2%")%y %plate_depth; diff --git a/src/libslic3r/GCode/ToolOrdering.cpp b/src/libslic3r/GCode/ToolOrdering.cpp index 0772e65408..040f0322df 100644 --- a/src/libslic3r/GCode/ToolOrdering.cpp +++ b/src/libslic3r/GCode/ToolOrdering.cpp @@ -1120,7 +1120,7 @@ void ToolOrdering::reorder_extruders_for_minimum_flush_volume(bool reorder_first } else { // populate wipe_volumes with prime_volume for (unsigned int i = 0; i < number_of_extruders; ++i) - wipe_volumes.push_back(std::vector(number_of_extruders, print_config->prime_volume)); + wipe_volumes.push_back(std::vector(number_of_extruders, print_config->filament_prime_volume.values[i])); } nozzle_flush_mtx.emplace_back(wipe_volumes); } diff --git a/src/libslic3r/GCode/WipeTower.cpp b/src/libslic3r/GCode/WipeTower.cpp index 4fff6c07fa..07b1d4ad95 100644 --- a/src/libslic3r/GCode/WipeTower.cpp +++ b/src/libslic3r/GCode/WipeTower.cpp @@ -1318,7 +1318,7 @@ float WipeTower::get_auto_brim_by_height(float max_height) { return 8.f; } -WipeTower::WipeTower(const PrintConfig& config, int plate_idx, Vec3d plate_origin, const float prime_volume, size_t initial_tool, const float wipe_tower_height) : +WipeTower::WipeTower(const PrintConfig& config, int plate_idx, Vec3d plate_origin, size_t initial_tool, const float wipe_tower_height) : m_semm(config.single_extruder_multi_material.value), m_wipe_tower_pos(config.wipe_tower_x.get_at(plate_idx), config.wipe_tower_y.get_at(plate_idx)), m_wipe_tower_width(float(config.prime_tower_width)), @@ -1335,7 +1335,6 @@ WipeTower::WipeTower(const PrintConfig& config, int plate_idx, Vec3d plate_origi m_travel_speed(config.travel_speed), m_current_tool(initial_tool), //wipe_volumes(flush_matrix) - m_wipe_volume(prime_volume), m_enable_timelapse_print(config.timelapse_type.value == TimelapseType::tlSmooth), m_filaments_change_length(config.filament_change_length.values), m_is_multi_extruder(config.nozzle_diameter.size() > 1), diff --git a/src/libslic3r/GCode/WipeTower.hpp b/src/libslic3r/GCode/WipeTower.hpp index 2a2a57c56d..404cbd6a10 100644 --- a/src/libslic3r/GCode/WipeTower.hpp +++ b/src/libslic3r/GCode/WipeTower.hpp @@ -167,7 +167,7 @@ public: // width -- width of wipe tower in mm ( default 60 mm - leave as it is ) // wipe_area -- space available for one toolchange in mm // BBS: add partplate logic - WipeTower(const PrintConfig& config, int plate_idx, Vec3d plate_origin, const float wipe_volume, size_t initial_tool, const float wipe_tower_height); + WipeTower(const PrintConfig& config, int plate_idx, Vec3d plate_origin, size_t initial_tool, const float wipe_tower_height); // Set the extruder properties. @@ -450,7 +450,6 @@ private: size_t m_current_tool = 0; // Orca: support mmu wipe tower std::vector> wipe_volumes; - const float m_wipe_volume; float m_depth_traversed = 0.f; // Current y position at the wipe tower. bool m_current_layer_finished = false; diff --git a/src/libslic3r/Preset.cpp b/src/libslic3r/Preset.cpp index 5f1a3313ab..144ddf11f8 100644 --- a/src/libslic3r/Preset.cpp +++ b/src/libslic3r/Preset.cpp @@ -815,7 +815,7 @@ static std::vector s_Preset_print_options { "skin_infill_line_width","skeleton_infill_line_width", "top_surface_line_width", "support_line_width", "infill_wall_overlap","top_bottom_infill_wall_overlap", "bridge_flow", "internal_bridge_flow", "elefant_foot_compensation", "elefant_foot_compensation_layers", "xy_contour_compensation", "xy_hole_compensation", "resolution", "enable_prime_tower", - "prime_tower_width", "prime_tower_brim_width", "prime_tower_skip_points", "prime_volume", + "prime_tower_width", "prime_tower_brim_width", "prime_tower_skip_points", "prime_tower_rib_wall","prime_tower_extra_rib_length","prime_tower_rib_width","prime_tower_fillet_wall", "wipe_tower_no_sparse_layers", "compatible_printers", "compatible_printers_condition", "inherits", "flush_into_infill", "flush_into_objects", "flush_into_support", @@ -879,7 +879,7 @@ static std::vector s_Preset_filament_options { "filament_multitool_ramming", "filament_multitool_ramming_volume", "filament_multitool_ramming_flow", "activate_chamber_temp_control", "filament_long_retractions_when_cut","filament_retraction_distances_when_cut", "idle_temperature", //BBS filament change length while the extruder color - "filament_change_length" + "filament_change_length","filament_prime_volume" }; static std::vector s_Preset_machine_limits_options { diff --git a/src/libslic3r/Print.cpp b/src/libslic3r/Print.cpp index bd9e324291..d9231e272a 100644 --- a/src/libslic3r/Print.cpp +++ b/src/libslic3r/Print.cpp @@ -314,7 +314,7 @@ bool Print::invalidate_state_by_config_options(const ConfigOptionResolver & /* n || opt_key == "wipe_tower_extra_flow" || opt_key == "wipe_tower_no_sparse_layers" || opt_key == "flush_volumes_matrix" - || opt_key == "prime_volume" + || opt_key == "filament_prime_volume" || opt_key == "flush_into_infill" || opt_key == "flush_into_support" || opt_key == "initial_layer_infill_speed" @@ -2809,9 +2809,10 @@ const WipeTowerData &Print::wipe_tower_data(size_t filaments_cnt) const if (max_height < EPSILON) return m_wipe_tower_data; if (! is_step_done(psWipeTower) && filaments_cnt !=0) { + std::vector filament_wipe_volume = m_config.filament_prime_volume.values; + double wipe_volume = get_max_element(filament_wipe_volume); if (m_config.prime_tower_rib_wall.value) { double layer_height = 0.08f; // hard code layer height - double wipe_volume = m_config.prime_volume; layer_height = m_objects.front()->config().layer_height.value; int filament_depth_count = m_config.nozzle_diameter.values.size() == 2 ? filaments_cnt : filaments_cnt - 1; if (filaments_cnt == 1 && enable_timelapse_print()) @@ -2841,7 +2842,6 @@ const WipeTowerData &Print::wipe_tower_data(size_t filaments_cnt) const maximum *= 0.6; const_cast(this)->m_wipe_tower_data.depth = maximum / (layer_height * width); } else { - double wipe_volume = m_config.prime_volume; if (filaments_cnt == 1 && enable_timelapse_print()) { const_cast(this)->m_wipe_tower_data.depth = wipe_volume / (layer_height * width); } else { @@ -2915,7 +2915,7 @@ void Print::_make_wipe_tower() if (!bUseWipeTower2) { // in BBL machine, wipe tower is only use to prime extruder. So just use a global wipe volume. - WipeTower wipe_tower(m_config, m_plate_index, m_origin, m_config.prime_volume, m_wipe_tower_data.tool_ordering.first_extruder(), + WipeTower wipe_tower(m_config, m_plate_index, m_origin, m_wipe_tower_data.tool_ordering.first_extruder(), m_wipe_tower_data.tool_ordering.empty() ? 0.f : m_wipe_tower_data.tool_ordering.back().print_z); wipe_tower.set_has_tpu_filament(this->has_tpu_filament()); wipe_tower.set_filament_map(this->get_filament_maps()); @@ -2980,7 +2980,7 @@ void Print::_make_wipe_tower() volume_to_purge = std::max(0.f, volume_to_purge - grab_purge_volume); wipe_tower.plan_toolchange((float)layer_tools.print_z, (float)layer_tools.wipe_tower_layer_height, current_filament_id, filament_id, - m_config.prime_volume, volume_to_purge); + m_config.filament_prime_volume.values[filament_id], volume_to_purge); current_filament_id = filament_id; nozzle_cur_filament_ids[nozzle_id] = filament_id; } @@ -3052,7 +3052,7 @@ void Print::_make_wipe_tower() for (unsigned int i = 0; i < number_of_extruders; ++i) { for (unsigned int j = 0; j < number_of_extruders; ++j) { if (wipe_volumes[i][j] > 0) { - wipe_volumes[i][j] = m_config.prime_volume; + wipe_volumes[i][j] = m_config.filament_prime_volume.values[j]; } } } @@ -3084,7 +3084,7 @@ void Print::_make_wipe_tower() for (const auto extruder_id : layer_tools.extruders) { if ((first_layer && extruder_id == m_wipe_tower_data.tool_ordering.all_extruders().back()) || extruder_id != current_extruder_id) { - float volume_to_wipe = m_config.prime_volume; + float volume_to_wipe = m_config.filament_prime_volume.values[extruder_id]; if (m_config.purge_in_prime_tower && m_config.single_extruder_multi_material) { volume_to_wipe = wipe_volumes[current_extruder_id][extruder_id]; // total volume to wipe after this toolchange volume_to_wipe *= m_config.flush_multiplier.get_at(0); diff --git a/src/libslic3r/PrintConfig.cpp b/src/libslic3r/PrintConfig.cpp index 2ef76ac791..0b172c5b0c 100644 --- a/src/libslic3r/PrintConfig.cpp +++ b/src/libslic3r/PrintConfig.cpp @@ -2488,6 +2488,15 @@ void PrintConfigDef::init_fff_params() def->mode = comAdvanced; def->set_default_value(new ConfigOptionBools { false }); + // BBS + def = this->add("filament_prime_volume", coFloats); + def->label = L("Filament prime volume"); + def->tooltip = L("The volume of material to prime extruder on tower."); + def->sidetext = L("mm³"); + def->min = 1.0; + def->mode = comSimple; + def->set_default_value(new ConfigOptionFloats{45.}); + // BBS def = this->add("temperature_vitrification", coInts); def->label = L("Softening temperature"); @@ -5896,14 +5905,14 @@ void PrintConfigDef::init_fff_params() def->sidetext = ""; def->set_default_value(new ConfigOptionFloats{0.3}); - // BBS - def = this->add("prime_volume", coFloat); - def->label = L("Prime volume"); - def->tooltip = L("The volume of material to prime extruder on tower."); - def->sidetext = u8"mm³"; // cubic milimeters, don't need translation - def->min = 1.0; - def->mode = comSimple; - def->set_default_value(new ConfigOptionFloat(45.)); + // // BBS + // def = this->add("prime_volume", coFloat); + // def->label = L("Prime volume"); + // def->tooltip = L("The volume of material to prime extruder on tower."); + // def->sidetext = u8"mm³"; // cubic milimeters, don't need translation + // def->min = 1.0; + // def->mode = comSimple; + // def->set_default_value(new ConfigOptionFloat(45.)); def = this->add("wipe_tower_x", coFloats); //def->label = L("Position X"); @@ -7071,7 +7080,7 @@ void PrintConfigDef::handle_legacy(t_config_option_key &opt_key, std::string &va } else if (opt_key == "wipe_tower_width") { opt_key = "prime_tower_width"; } else if (opt_key == "wiping_volume") { - opt_key = "prime_volume"; + opt_key = "filament_prime_volume"; } else if (opt_key == "wipe_tower_brim_width") { opt_key = "prime_tower_brim_width"; } else if (opt_key == "tool_change_gcode") { @@ -7224,6 +7233,7 @@ void PrintConfigDef::handle_legacy(t_config_option_key &opt_key, std::string &va "internal_bridge_support_thickness","extruder_clearance_max_radius", "top_area_threshold", "reduce_wall_solid_infill","filament_load_time","filament_unload_time", "smooth_coefficient", "overhang_totally_speed", "silent_mode", "overhang_speed_classic", + "prime_volume" }; if (ignore.find(opt_key) != ignore.end()) { diff --git a/src/libslic3r/PrintConfig.hpp b/src/libslic3r/PrintConfig.hpp index 8397f1ca91..1645162f54 100644 --- a/src/libslic3r/PrintConfig.hpp +++ b/src/libslic3r/PrintConfig.hpp @@ -1472,7 +1472,6 @@ PRINT_CONFIG_CLASS_DERIVED_DEFINE( // BBS: wipe tower is only used for priming - ((ConfigOptionFloat, prime_volume)) ((ConfigOptionFloats, flush_multiplier)) ((ConfigOptionFloat, z_offset)) // BBS: project filaments @@ -1510,6 +1509,8 @@ PRINT_CONFIG_CLASS_DERIVED_DEFINE( ((ConfigOptionPoint, bed_mesh_probe_distance)) ((ConfigOptionFloat, adaptive_bed_mesh_margin)) + ((ConfigOptionFloats, filament_prime_volume)) + ) diff --git a/src/libslic3r/Utils.hpp b/src/libslic3r/Utils.hpp index 70be67e585..0edff083ba 100644 --- a/src/libslic3r/Utils.hpp +++ b/src/libslic3r/Utils.hpp @@ -131,6 +131,17 @@ inline DataType round_divide(DataType dividend, DataType divisor) //!< Return di return (dividend + divisor / 2) / divisor; } +template +T get_max_element(const std::vector &vec) +{ + static_assert(std::is_arithmetic::value, "T must be of numeric type."); + if (vec.empty()) + return static_cast(0); + + return *std::max_element(vec.begin(), vec.end()); +} + + // Set a path with GUI localization files. void set_local_dir(const std::string &path); // Return a full path to the localization directory. diff --git a/src/slic3r/GUI/GLCanvas3D.cpp b/src/slic3r/GUI/GLCanvas3D.cpp index a630d03979..5355e0e6ea 100644 --- a/src/slic3r/GUI/GLCanvas3D.cpp +++ b/src/slic3r/GUI/GLCanvas3D.cpp @@ -2873,16 +2873,17 @@ void GLCanvas3D::reload_scene(bool refresh_immediately, bool force_full_scene_re float a = dynamic_cast(proj_cfg.option("wipe_tower_rotation_angle"))->value; float tower_brim_width = dynamic_cast(m_config->option("prime_tower_brim_width"))->value; // BBS - float v = dynamic_cast(m_config->option("prime_volume"))->value; + std::vector v = dynamic_cast(m_config->option("filament_prime_volume"))->values; Vec3d plate_origin = ppl.get_plate(plate_id)->get_origin(); const Print* print = m_process->fff_print(); const auto& wipe_tower_data = print->wipe_tower_data(filaments_count); float brim_width = wipe_tower_data.brim_width; const DynamicPrintConfig &print_cfg = wxGetApp().preset_bundle->prints.get_edited_preset().config; + double wipe_vol = get_max_element(v); Vec3d wipe_tower_size = ppl.get_plate(plate_id)->estimate_wipe_tower_size(print_cfg, w, wipe_tower_data.depth); if (dynamic_cast(m_config->option("prime_tower_rib_wall"))->value) - wipe_tower_size = ppl.get_plate(plate_id)->calculate_wipe_tower_size(print_cfg, w, v); + wipe_tower_size = ppl.get_plate(plate_id)->calculate_wipe_tower_size(print_cfg, w, wipe_vol); { // update for wipe tower position part_plate->get_extruder_areas(); diff --git a/src/slic3r/GUI/PartPlate.cpp b/src/slic3r/GUI/PartPlate.cpp index c95494608d..96944aa531 100644 --- a/src/slic3r/GUI/PartPlate.cpp +++ b/src/slic3r/GUI/PartPlate.cpp @@ -1828,8 +1828,7 @@ Vec3d PartPlate::calculate_wipe_tower_size(const DynamicPrintConfig &config, con auto timelapse_type = config.option>("timelapse_type"); bool timelapse_enabled = timelapse_type ? (timelapse_type->value == TimelapseType::tlSmooth) : false; - - int nozzle_nums = wxGetApp().preset_bundle->get_printer_extruder_count(); + int nozzle_nums = wxGetApp().preset_bundle->get_printer_extruder_count(); double depth = std::sqrt(wipe_volume * (nozzle_nums == 2 ? plate_extruder_size : (plate_extruder_size - 1)) / layer_height); if (timelapse_enabled || plate_extruder_size > 1) { float min_wipe_tower_depth = WipeTower::get_limit_depth_by_height(max_height); @@ -1920,9 +1919,9 @@ arrangement::ArrangePolygon PartPlate::estimate_wipe_tower_polygon(const Dynamic float y = dynamic_cast(config.option("wipe_tower_y"))->get_at(plate_index); float w = dynamic_cast(config.option("prime_tower_width"))->value; //float a = dynamic_cast(config.option("wipe_tower_rotation_angle"))->value; - float v = dynamic_cast(config.option("prime_volume"))->value; + std::vector v = dynamic_cast(config.option("filament_prime_volume"))->values; float tower_brim_width = dynamic_cast(config.option("prime_tower_brim_width"))->value; - Vec3d wipe_tower_size = estimate_wipe_tower_size(config, w, v, plate_extruder_size, use_global_objects); + Vec3d wipe_tower_size = estimate_wipe_tower_size(config, w, get_max_element(v), plate_extruder_size, use_global_objects); int plate_width=m_width, plate_depth=m_depth; float depth = wipe_tower_size(1); float margin = WIPE_TOWER_MARGIN + tower_brim_width, wp_brim_width = 0.f; diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index 469533ea9c..cbeaa36d07 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -3922,8 +3922,8 @@ Plater::priv::priv(Plater *q, MainFrame *main_frame) "extruder_clearance_height_to_lid", "extruder_clearance_height_to_rod", "nozzle_height", "skirt_type", "skirt_loops", "skirt_speed","min_skirt_length", "skirt_distance", "skirt_start_angle", "brim_width", "brim_object_gap", "brim_type", "nozzle_diameter", "single_extruder_multi_material", "preferred_orientation", - "enable_prime_tower", "wipe_tower_x", "wipe_tower_y", "prime_tower_width", "prime_tower_brim_width", "prime_tower_skip_points", "prime_volume", - "prime_tower_rib_wall","prime_tower_extra_rib_length", "prime_tower_rib_width","prime_tower_fillet_wall", + "enable_prime_tower", "wipe_tower_x", "wipe_tower_y", "prime_tower_width", "prime_tower_brim_width", "prime_tower_skip_points", + "prime_tower_rib_wall","prime_tower_extra_rib_length", "prime_tower_rib_width","prime_tower_fillet_wall", "filament_prime_volume", "extruder_colour", "filament_colour", "filament_type", "material_colour", "printable_height", "extruder_printable_height", "printer_model", "printer_technology", // These values are necessary to construct SlicingParameters by the Canvas3D variable layer height editor. "layer_height", "initial_layer_print_height", "min_layer_height", "max_layer_height", @@ -14707,9 +14707,7 @@ void Plater::on_config_change(const DynamicPrintConfig &config) boost::starts_with(opt_key, "prime_tower") || boost::starts_with(opt_key, "wipe_tower") || opt_key == "filament_minimal_purge_on_wipe_tower" || - opt_key == "single_extruder_multi_material" || - // BBS - opt_key == "prime_volume") { + opt_key == "single_extruder_multi_material") { update_scheduled = true; } else if(opt_key == "extruder_colour") { diff --git a/src/slic3r/GUI/Tab.cpp b/src/slic3r/GUI/Tab.cpp index bc47e2610d..1ab5848143 100644 --- a/src/slic3r/GUI/Tab.cpp +++ b/src/slic3r/GUI/Tab.cpp @@ -2448,7 +2448,6 @@ void TabPrint::build() optgroup->append_single_option_line("enable_prime_tower", "multimaterial_settings_prime_tower"); optgroup->append_single_option_line("prime_tower_skip_points", "parameter/prime-tower"); optgroup->append_single_option_line("prime_tower_width", "multimaterial_settings_prime_tower#width"); - optgroup->append_single_option_line("prime_volume", "multimaterial_settings_prime_tower"); optgroup->append_single_option_line("prime_tower_brim_width", "multimaterial_settings_prime_tower#brim-width"); optgroup->append_single_option_line("prime_tower_rib_wall", "parameter/prime-tower"); optgroup->append_single_option_line("prime_tower_extra_rib_length","parameter/prime-tower"); @@ -3535,6 +3534,7 @@ void TabFilament::build() optgroup->append_single_option_line("filament_is_support"); optgroup->append_single_option_line("filament_change_length"); + optgroup->append_single_option_line("filament_prime_volume"); //optgroup->append_single_option_line("filament_colour"); optgroup->append_single_option_line("required_nozzle_HRC"); optgroup->append_single_option_line("default_filament_colour");