mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-06-03 02:22:46 +00:00
Yet more refactoring of Print / PrintObject in regard to
C++11 loops, configuration and step invalidation.
This commit is contained in:
@@ -145,6 +145,13 @@ class DynamicPrintConfig : public PrintConfigBase, public DynamicConfig
|
||||
void normalize();
|
||||
};
|
||||
|
||||
template<typename CONFIG>
|
||||
void normalize_and_apply_config(CONFIG &dst, const DynamicPrintConfig &src)
|
||||
{
|
||||
DynamicPrintConfig src_normalized = src;
|
||||
src_normalized.normalize();
|
||||
dst.apply(src_normalized, true);
|
||||
}
|
||||
|
||||
class StaticPrintConfig : public PrintConfigBase, public StaticConfig
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user