mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 16:57:53 -06:00
Further refactoring, C++11 conversion and code simplification.
This commit is contained in:
parent
e1ca1a82fb
commit
102329c54d
6 changed files with 107 additions and 175 deletions
|
@ -128,11 +128,14 @@ SupportLayer* PrintObject::add_support_layer(int id, coordf_t height, coordf_t p
|
|||
return support_layers.back();
|
||||
}
|
||||
|
||||
// Called by Print::apply_config().
|
||||
// This method only accepts PrintObjectConfig and PrintRegionConfig option keys.
|
||||
bool PrintObject::invalidate_state_by_config_options(const std::vector<t_config_option_key> &opt_keys)
|
||||
{
|
||||
if (opt_keys.empty())
|
||||
return false;
|
||||
|
||||
std::vector<PrintObjectStep> steps;
|
||||
|
||||
// this method only accepts PrintObjectConfig and PrintRegionConfig option keys
|
||||
for (const t_config_option_key &opt_key : opt_keys) {
|
||||
if (opt_key == "perimeters"
|
||||
|| opt_key == "extra_perimeters"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue