mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 04:31:15 -06:00 
			
		
		
		
	FIX: add small disc stl
Change-Id: I5c6c8ca1d4a15fc1462fe47d2e5e37b459f9a9a6 (cherry picked from commit b240831ee664c825e0f7df08d3181263dc135606)
This commit is contained in:
		
							parent
							
								
									53240ddc66
								
							
						
					
					
						commit
						4bffab0ef8
					
				
					 3 changed files with 3 additions and 1 deletions
				
			
		
							
								
								
									
										
											BIN
										
									
								
								resources/model/Disc.stl
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								resources/model/Disc.stl
									
										
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							|  | @ -484,7 +484,7 @@ wxMenu* MenuFactory::append_submenu_add_generic(wxMenu* menu, ModelVolumeType ty | |||
|         sub_menu->AppendSeparator(); | ||||
|     } | ||||
| 
 | ||||
|     for (auto &item : {L("Cube"), L("Cylinder"), L("Sphere"), L("Cone")}) | ||||
|     for (auto &item : {L("Cube"), L("Cylinder"), L("Sphere"), L("Cone"), L("Disc")}) | ||||
|     { | ||||
|         append_menu_item(sub_menu, wxID_ANY, _(item), "", | ||||
|             [type, item](wxCommandEvent&) { obj_list()->load_generic_subobject(item, type); }, "", menu); | ||||
|  |  | |||
|  | @ -2037,6 +2037,8 @@ static TriangleMesh create_mesh(const std::string& type_name, const BoundingBoxf | |||
|         mesh = TriangleMesh(its_make_cube(bb.size().x() * 1.5, bb.size().y() * 1.5, bb.size().z() * 0.5)); | ||||
|     else if (type_name == "Cone") | ||||
|         mesh = TriangleMesh(its_make_cone(0.5 * side, side)); | ||||
|     else if (type_name == "Disc") | ||||
|         mesh.ReadSTLFile((Slic3r::resources_dir() + "/model/Disc.stl").c_str(), true, nullptr); | ||||
|     else if (type_name == "Bambu Cube") | ||||
|         mesh.ReadSTLFile((Slic3r::resources_dir() + "/model/Bambu_Cube.stl").c_str(), true, nullptr); | ||||
|     else if (type_name == "Bambu Cube V2") | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 maosheng.wei
						maosheng.wei