mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-18 04:35:58 +08:00
Follow-up to 3e7a4d4648904b64c9f2d1c2948d81878f2a5eeb
Allowed for localization of error messages.
This commit is contained in:
parent
3e7a4d4648
commit
56e189943f
@ -660,11 +660,11 @@ std::string Print::validate(std::string* warning) const
|
||||
if (m_config.use_relative_e_distances) {
|
||||
// See GH issues #6336 #5073
|
||||
if (! before_layer_gcode_resets_extruder && ! layer_gcode_resets_extruder)
|
||||
return "Relative extruder addressing requires resetting the extruder position at each layer to prevent loss of floating point accuracy. Add \"G92 E0\" to layer_gcode.";
|
||||
return L("Relative extruder addressing requires resetting the extruder position at each layer to prevent loss of floating point accuracy. Add \"G92 E0\" to layer_gcode.");
|
||||
} else if (before_layer_gcode_resets_extruder)
|
||||
return "\"G92 E0\" was found in before_layer_gcode, which is incompatible with absolute extruder addressing.";
|
||||
return L("\"G92 E0\" was found in before_layer_gcode, which is incompatible with absolute extruder addressing.");
|
||||
else if (layer_gcode_resets_extruder)
|
||||
return "\"G92 E0\" was found in layer_gcode, which is incompatible with absolute extruder addressing.";
|
||||
return L("\"G92 E0\" was found in layer_gcode, which is incompatible with absolute extruder addressing.");
|
||||
}
|
||||
|
||||
return std::string();
|
||||
|
Loading…
x
Reference in New Issue
Block a user