mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	Added xml escape characters detection when exporting object and columes names to amf files
This commit is contained in:
		
							parent
							
								
									df36de0d35
								
							
						
					
					
						commit
						33175a02f3
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -761,7 +761,7 @@ bool store_amf(const char *path, Model *model, Print* print, bool export_print_c | |||
|         for (const std::string &key : object->config.keys()) | ||||
|             stream << "    <metadata type=\"slic3r." << key << "\">" << object->config.serialize(key) << "</metadata>\n"; | ||||
|         if (!object->name.empty()) | ||||
|             stream << "    <metadata type=\"name\">" << object->name << "</metadata>\n"; | ||||
|             stream << "    <metadata type=\"name\">" << xml_escape(object->name) << "</metadata>\n"; | ||||
|         std::vector<double> layer_height_profile = object->layer_height_profile_valid ? object->layer_height_profile : std::vector<double>(); | ||||
|         if (layer_height_profile.size() >= 4 && (layer_height_profile.size() % 2) == 0) { | ||||
|             // Store the layer height profile as a single semicolon separated list.
 | ||||
|  | @ -805,7 +805,7 @@ bool store_amf(const char *path, Model *model, Print* print, bool export_print_c | |||
|             for (const std::string &key : volume->config.keys()) | ||||
|                 stream << "        <metadata type=\"slic3r." << key << "\">" << volume->config.serialize(key) << "</metadata>\n"; | ||||
|             if (!volume->name.empty()) | ||||
|                 stream << "        <metadata type=\"name\">" << volume->name << "</metadata>\n"; | ||||
|                 stream << "        <metadata type=\"name\">" << xml_escape(volume->name) << "</metadata>\n"; | ||||
|             if (volume->modifier) | ||||
|                 stream << "        <metadata type=\"slic3r.modifier\">1</metadata>\n"; | ||||
|             for (int i = 0; i < volume->mesh.stl.stats.number_of_facets; ++i) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Enrico Turri
						Enrico Turri