mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 11:23:42 +00:00
Fix for possible clash with old correction vectors in config
This commit is contained in:
@@ -1664,16 +1664,16 @@ Vec3d SLAPrint::relative_correction() const
|
|||||||
{
|
{
|
||||||
Vec3d corr(1., 1., 1.);
|
Vec3d corr(1., 1., 1.);
|
||||||
|
|
||||||
if(printer_config().relative_correction.values.size() == 2) {
|
if(printer_config().relative_correction.values.size() >= 2) {
|
||||||
corr(X) = printer_config().relative_correction.values[0];
|
corr(X) = printer_config().relative_correction.values[0];
|
||||||
corr(Y) = printer_config().relative_correction.values[0];
|
corr(Y) = printer_config().relative_correction.values[0];
|
||||||
corr(Z) = printer_config().relative_correction.values[1];
|
corr(Z) = printer_config().relative_correction.values.back();
|
||||||
}
|
}
|
||||||
|
|
||||||
if(material_config().material_correction.values.size() == 2) {
|
if(material_config().material_correction.values.size() >= 2) {
|
||||||
corr(X) *= material_config().material_correction.values[0];
|
corr(X) *= material_config().material_correction.values[0];
|
||||||
corr(Y) *= material_config().material_correction.values[0];
|
corr(Y) *= material_config().material_correction.values[0];
|
||||||
corr(Z) *= material_config().material_correction.values[1];
|
corr(Z) *= material_config().material_correction.values.back();
|
||||||
}
|
}
|
||||||
|
|
||||||
return corr;
|
return corr;
|
||||||
|
|||||||
Reference in New Issue
Block a user