From 20e4cef12e0c004d8a6daa691327329a309d3a2e 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 d1e9e7dc65..e508ad94ea 100644 --- a/src/libslic3r/Preset.cpp +++ b/src/libslic3r/Preset.cpp @@ -624,7 +624,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 3be7a795c9..1c8e13dc3d 100644 --- a/src/libslic3r/PrintConfig.cpp +++ b/src/libslic3r/PrintConfig.cpp @@ -4482,7 +4482,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 30dade6990..331f58a348 100644 --- a/src/libslic3r/PrintConfig.hpp +++ b/src/libslic3r/PrintConfig.hpp @@ -1184,6 +1184,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 c2caec24e1..00b8261ed2 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" }}