diff options
author | Vojtech Bubnik <bubnikv@gmail.com> | 2021-12-01 20:11:41 +0300 |
---|---|---|
committer | Vojtech Bubnik <bubnikv@gmail.com> | 2021-12-01 20:11:41 +0300 |
commit | 481def3205182193140c6186420fe97adbda8abc (patch) | |
tree | f0000ddd9e1e1d1686a5e5d59420abd7a68149a4 /src/libslic3r/PrintConfig.cpp | |
parent | e8697d2fc29ce017c94f7fc1cc1b8922d0bfc298 (diff) |
WIP Lightning Infill, roughly integrated, untested, disabled with
HAS_LIGHTNING_INFILL
Diffstat (limited to 'src/libslic3r/PrintConfig.cpp')
-rw-r--r-- | src/libslic3r/PrintConfig.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/libslic3r/PrintConfig.cpp b/src/libslic3r/PrintConfig.cpp index 4ab893bef..9a4db03f6 100644 --- a/src/libslic3r/PrintConfig.cpp +++ b/src/libslic3r/PrintConfig.cpp @@ -107,7 +107,10 @@ static t_config_enum_values s_keys_map_InfillPattern { { "archimedeanchords", ipArchimedeanChords }, { "octagramspiral", ipOctagramSpiral }, { "adaptivecubic", ipAdaptiveCubic }, - { "supportcubic", ipSupportCubic } + { "supportcubic", ipSupportCubic }, +#if HAS_LIGHTNING_INFILL + { "lightning", ipLightning } +#endif // HAS_LIGHTNING_INFILL }; CONFIG_OPTION_ENUM_DEFINE_STATIC_MAPS(InfillPattern) @@ -1135,6 +1138,9 @@ void PrintConfigDef::init_fff_params() def->enum_values.push_back("octagramspiral"); def->enum_values.push_back("adaptivecubic"); def->enum_values.push_back("supportcubic"); +#if HAS_LIGHTNING_INFILL + def->enum_values.push_back("lightning"); +#endif // HAS_LIGHTNING_INFILL def->enum_labels.push_back(L("Rectilinear")); def->enum_labels.push_back(L("Aligned Rectilinear")); def->enum_labels.push_back(L("Grid")); @@ -1151,6 +1157,9 @@ void PrintConfigDef::init_fff_params() def->enum_labels.push_back(L("Octagram Spiral")); def->enum_labels.push_back(L("Adaptive Cubic")); def->enum_labels.push_back(L("Support Cubic")); +#if HAS_LIGHTNING_INFILL + def->enum_labels.push_back(L("Lightning")); +#endif // HAS_LIGHTNING_INFILL def->set_default_value(new ConfigOptionEnum<InfillPattern>(ipStars)); def = this->add("first_layer_acceleration", coFloat); |