mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-05 15:20:47 +08:00
Pass-through apply and a version of apply_only for Slic3r::Configs so that it can be used with shared_ptr versions.
This commit is contained in:
parent
7553b2f19c
commit
9812e6a81c
@ -123,6 +123,10 @@ public:
|
||||
/// Pass-through of apply()
|
||||
void apply(const config_ptr& other) { _config.apply(other->config()); }
|
||||
void apply(const Slic3r::Config& other) { _config.apply(other.config()); }
|
||||
|
||||
/// Apply only configuration options in the array.
|
||||
void apply_with_defaults(const config_ptr& other, const t_config_option_keys& keys) { _config.apply_only(other->_config, keys, false, true); }
|
||||
void apply(const config_ptr& other, const t_config_option_keys& keys) { _config.apply_only(other->_config, keys, false, false); }
|
||||
|
||||
/// Allow other configs to be applied to this one.
|
||||
void apply(const Slic3r::ConfigBase& other) { _config.apply(other); }
|
||||
|
Loading…
x
Reference in New Issue
Block a user