diff options
author | bubnikv <bubnikv@gmail.com> | 2018-01-04 17:38:06 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2018-01-04 17:38:06 +0300 |
commit | 696d420dc8017422b4a7b5b1c3c1b34f408c887d (patch) | |
tree | 4eab40fd363c10f1de5fc4f397d92527bee0a416 /xs/src/libslic3r | |
parent | 011281df86212cb2adf84f9229a78d31617d250d (diff) |
New feature: Recommended object thin wall thickness hint.
Diffstat (limited to 'xs/src/libslic3r')
-rw-r--r-- | xs/src/libslic3r/Config.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xs/src/libslic3r/Config.hpp b/xs/src/libslic3r/Config.hpp index c203f3be2..e04f4df82 100644 --- a/xs/src/libslic3r/Config.hpp +++ b/xs/src/libslic3r/Config.hpp @@ -1161,6 +1161,8 @@ public: const ConfigDef* def() const override { return nullptr; }; template<class T> T* opt(const t_config_option_key &opt_key, bool create = false) { return dynamic_cast<T*>(this->option(opt_key, create)); } + template<class T> const T* opt(const t_config_option_key &opt_key) const + { return dynamic_cast<const T*>(this->option(opt_key)); } // Overrides ConfigBase::optptr(). Find ando/or create a ConfigOption instance for a given name. ConfigOption* optptr(const t_config_option_key &opt_key, bool create = false) override; // Overrides ConfigBase::keys(). Collect names of all configuration values maintained by this configuration store. |