Fixed unreliable application of filament overrides to PlaceholderParser.

Sometimes the PlaceholderParser used main config instead of filament
overrides and vice versa.
Follow-up to #3649
This commit is contained in:
Vojtech Bubnik 2021-08-20 14:21:22 +02:00
parent 4ebcbca711
commit f98f7ba3e8
2 changed files with 14 additions and 7 deletions

View file

@ -24,6 +24,7 @@ public:
PlaceholderParser(const DynamicConfig *external_config = nullptr);
void clear_config() { m_config.clear(); }
// Return a list of keys, which should be changed in m_config from rhs.
// This contains keys, which are found in rhs, but not in m_config.
std::vector<std::string> config_diff(const DynamicPrintConfig &rhs);