mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 11:53:48 +00:00
ENH: update translation
jira:NONE Signed-off-by: xun.zhang <xun.zhang@bambulab.com> Change-Id: I85317044598c4a014c095cca30d1e9abc1fa9145 (cherry picked from commit d64977c9abe5b1cdc81876dc9124e9b1dbeba899)
This commit is contained in:
@@ -9934,11 +9934,7 @@ void GLCanvas3D::_set_warning_notification(EWarning warning, bool state)
|
|||||||
case EWarning::ToolHeightOutside: text = _u8L("A G-code path goes beyond the max print height."); error = ErrorType::SLICING_ERROR; break;
|
case EWarning::ToolHeightOutside: text = _u8L("A G-code path goes beyond the max print height."); error = ErrorType::SLICING_ERROR; break;
|
||||||
case EWarning::ToolpathOutside: text = _u8L("A G-code path goes beyond the plate boundaries."); error = ErrorType::SLICING_ERROR; break;
|
case EWarning::ToolpathOutside: text = _u8L("A G-code path goes beyond the plate boundaries."); error = ErrorType::SLICING_ERROR; break;
|
||||||
case EWarning::TPUPrintableError: {
|
case EWarning::TPUPrintableError: {
|
||||||
int master_extruder_id = 1; // main extruder is left or right
|
text = _u8L("Not support printing 2 or more TPU filaments.");
|
||||||
if (m_config->has("master_extruder_id"))
|
|
||||||
master_extruder_id = m_config->opt_int("master_extruder_id"); // base 1
|
|
||||||
std::string extruder_name = extruder_name_list[master_extruder_id-1];
|
|
||||||
text = (boost::format(_u8L("Only the %s with external filament spool can print TPU")) %extruder_name).str();
|
|
||||||
error = ErrorType::SLICING_ERROR;
|
error = ErrorType::SLICING_ERROR;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1759,23 +1759,8 @@ bool PartPlate::check_tpu_printable_status(const DynamicPrintConfig & config, co
|
|||||||
{
|
{
|
||||||
bool tpu_valid = true;
|
bool tpu_valid = true;
|
||||||
|
|
||||||
if (!tpu_filaments.empty()) {
|
// only support at most 1 tpu
|
||||||
if (tpu_filaments.size() > 1)
|
return tpu_filaments.size() <=1;
|
||||||
tpu_valid = false;
|
|
||||||
else if (get_real_filament_map_mode(config) == FilamentMapMode::fmmManual) {
|
|
||||||
if (config.has("master_extruder_id")) {
|
|
||||||
int tpu_filament_id = *tpu_filaments.begin();
|
|
||||||
std::vector<int> filament_map = get_real_filament_maps(config);
|
|
||||||
int extruder_id = filament_map[tpu_filament_id];
|
|
||||||
|
|
||||||
int master_extruder_id = config.opt_int("master_extruder_id"); // base 1
|
|
||||||
if (master_extruder_id != extruder_id)
|
|
||||||
tpu_valid = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return tpu_valid;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PartPlate::check_mixture_of_pla_and_petg(const DynamicPrintConfig &config)
|
bool PartPlate::check_mixture_of_pla_and_petg(const DynamicPrintConfig &config)
|
||||||
|
|||||||
Reference in New Issue
Block a user