mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 08:47:52 -06:00
Removing separate X and Y relative correction.
This commit is contained in:
parent
81f4ce5f2e
commit
53861b2012
2 changed files with 10 additions and 9 deletions
|
@ -1654,16 +1654,16 @@ Vec3d SLAPrint::relative_correction() const
|
|||
{
|
||||
Vec3d corr(1., 1., 1.);
|
||||
|
||||
if(printer_config().relative_correction.values.size() == 3) {
|
||||
corr(X) = printer_config().relative_correction.values[X];
|
||||
corr(Y) = printer_config().relative_correction.values[Y];
|
||||
corr(Z) = printer_config().relative_correction.values[Z];
|
||||
if(printer_config().relative_correction.values.size() == 2) {
|
||||
corr(X) = printer_config().relative_correction.values[0];
|
||||
corr(Y) = printer_config().relative_correction.values[0];
|
||||
corr(Z) = printer_config().relative_correction.values[1];
|
||||
}
|
||||
|
||||
if(material_config().material_correction.values.size() == 3) {
|
||||
corr(X) *= material_config().material_correction.values[X];
|
||||
corr(Y) *= material_config().material_correction.values[Y];
|
||||
corr(Z) *= material_config().material_correction.values[Z];
|
||||
if(material_config().material_correction.values.size() == 2) {
|
||||
corr(X) *= material_config().material_correction.values[0];
|
||||
corr(Y) *= material_config().material_correction.values[0];
|
||||
corr(Z) *= material_config().material_correction.values[1];
|
||||
}
|
||||
|
||||
return corr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue