mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	WIP PrintRegion refactoring: Another round of bug fixing, negative volumes
seem to work.
This commit is contained in:
		
							parent
							
								
									8ab6a615d0
								
							
						
					
					
						commit
						b3195614cf
					
				
					 7 changed files with 121 additions and 101 deletions
				
			
		|  | @ -151,7 +151,7 @@ wxBitmap SettingsFactory::get_category_bitmap(const std::string& category_name) | |||
| //-------------------------------------
 | ||||
| 
 | ||||
| // Note: id accords to type of the sub-object (adding volume), so sequence of the menu items is important
 | ||||
| std::vector<std::pair<std::string, std::string>> MenuFactory::ADD_VOLUME_MENU_ITEMS = { | ||||
| const std::vector<std::pair<std::string, std::string>> MenuFactory::ADD_VOLUME_MENU_ITEMS { | ||||
| //       menu_item Name              menu_item bitmap name
 | ||||
|         {L("Add part"),              "add_part" },           // ~ModelVolumeType::MODEL_PART
 | ||||
|         {L("Add negative volume"),   "add_negative" },       // ~ModelVolumeType::NEGATIVE_VOLUME
 | ||||
|  |  | |||
|  | @ -33,7 +33,7 @@ struct SettingsFactory | |||
| class MenuFactory | ||||
| { | ||||
| public: | ||||
|     static std::vector<std::pair<std::string, std::string>> ADD_VOLUME_MENU_ITEMS; | ||||
|     static const std::vector<std::pair<std::string, std::string>> ADD_VOLUME_MENU_ITEMS; | ||||
|     static std::vector<wxBitmap>    get_volume_bitmaps(); | ||||
| 
 | ||||
|     MenuFactory(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Vojtech Bubnik
						Vojtech Bubnik