mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	Merge branch 'master' of https://github.com/prusa3d/Slic3r into opengl_to_cpp
This commit is contained in:
		
						commit
						2dee4d1a83
					
				
					 1 changed files with 1 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -840,17 +840,13 @@ size_t PresetBundle::load_configbundle(const std::string &path, unsigned int fla
 | 
			
		|||
            // Load the print, filament or printer preset.
 | 
			
		||||
            const DynamicPrintConfig &default_config = presets->default_preset().config;
 | 
			
		||||
            DynamicPrintConfig config(default_config);
 | 
			
		||||
            std::vector<std::string> config_keys = config.keys();
 | 
			
		||||
            // The following two keys are valid, but they are not mandatory.
 | 
			
		||||
            config_keys.emplace_back("compatible_printers");
 | 
			
		||||
            config_keys.emplace_back("compatible_printers_condition");
 | 
			
		||||
            for (auto &kvp : section.second)
 | 
			
		||||
                config.set_deserialize(kvp.first, kvp.second.data());
 | 
			
		||||
            Preset::normalize(config);
 | 
			
		||||
            // Report configuration fields, which are misplaced into a wrong group.
 | 
			
		||||
            std::string incorrect_keys;
 | 
			
		||||
            size_t      n_incorrect_keys = 0;
 | 
			
		||||
            for (const std::string &key : config_keys)
 | 
			
		||||
            for (const std::string &key : config.keys())
 | 
			
		||||
                if (! default_config.has(key)) {
 | 
			
		||||
                    if (incorrect_keys.empty())
 | 
			
		||||
                        incorrect_keys = key;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue