From c43f90e0e4d14cdd4a85832f6ad8a69b96238bae Mon Sep 17 00:00:00 2001 From: Lukas Matena Date: Wed, 22 May 2024 13:05:27 +0200 Subject: [PATCH] Added new SLA material override for absolute correction (SPE-2262) --- src/libslic3r/Preset.cpp | 2 +- src/libslic3r/PrintConfig.cpp | 2 +- src/libslic3r/PrintConfig.hpp | 1 + src/libslic3r/SLAPrint.cpp | 2 ++ src/slic3r/GUI/Tab.cpp | 1 + 5 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/libslic3r/Preset.cpp b/src/libslic3r/Preset.cpp index df6260c5e0..98c44192c6 100644 --- a/src/libslic3r/Preset.cpp +++ b/src/libslic3r/Preset.cpp @@ -622,7 +622,7 @@ static std::vector s_Preset_sla_material_options { "material_ow_branchingsupport_pillar_diameter", "material_ow_support_points_density_relative", - + "material_ow_absolute_correction", "material_ow_relative_correction_x", "material_ow_relative_correction_y", "material_ow_relative_correction_z", diff --git a/src/libslic3r/PrintConfig.cpp b/src/libslic3r/PrintConfig.cpp index e4dfcdf866..628398ed64 100644 --- a/src/libslic3r/PrintConfig.cpp +++ b/src/libslic3r/PrintConfig.cpp @@ -4399,7 +4399,7 @@ void PrintConfigDef::init_sla_params() "support_head_width", "branchingsupport_head_width", "support_pillar_diameter", "branchingsupport_pillar_diameter", "relative_correction_x", "relative_correction_y", "relative_correction_z", - "elefant_foot_compensation", + "elefant_foot_compensation", "absolute_correction", // int "support_points_density_relative" }) { diff --git a/src/libslic3r/PrintConfig.hpp b/src/libslic3r/PrintConfig.hpp index 5159bcdbc2..9a3be796f0 100644 --- a/src/libslic3r/PrintConfig.hpp +++ b/src/libslic3r/PrintConfig.hpp @@ -1168,6 +1168,7 @@ PRINT_CONFIG_CLASS_DEFINE( ((ConfigOptionFloatNullable, material_ow_branchingsupport_head_width)) ((ConfigOptionIntNullable, material_ow_support_points_density_relative)) ((ConfigOptionFloatNullable, material_ow_elefant_foot_compensation)) + ((ConfigOptionFloatNullable, material_ow_absolute_correction)) ((ConfigOptionFloatNullable, material_ow_relative_correction_x)) ((ConfigOptionFloatNullable, material_ow_relative_correction_y)) ((ConfigOptionFloatNullable, material_ow_relative_correction_z)) diff --git a/src/libslic3r/SLAPrint.cpp b/src/libslic3r/SLAPrint.cpp index 33e57ed5cb..2d59190236 100644 --- a/src/libslic3r/SLAPrint.cpp +++ b/src/libslic3r/SLAPrint.cpp @@ -223,6 +223,7 @@ static t_config_option_keys print_config_diffs(const StaticPrintConfig &curr "relative_correction_y"sv, "relative_correction_z"sv, "elefant_foot_compensation"sv, + "absolute_correction"sv, }; static constexpr auto material_ow_prefix = "material_ow_"; @@ -908,6 +909,7 @@ bool SLAPrint::invalidate_state_by_config_options(const std::vector>> material_overrides "support_points_density_relative" }}, {"Corrections", { + "absolute_correction", "relative_correction", "elefant_foot_compensation" }}