mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	Merge branch 'master' of https://github.com/prusa3d/Slic3r into scene_manipulators
This commit is contained in:
		
						commit
						eeaedb146d
					
				
					 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
	
	 Enrico Turri
						Enrico Turri