mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-20 07:11:12 -06:00 
			
		
		
		
	NEW: add menu item of per object process
Change-Id: I09c7516903e59e976f582d7efaff33cc3033c820 Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
		
							parent
							
								
									e50d75026a
								
							
						
					
					
						commit
						2b23e3c119
					
				
					 6 changed files with 37 additions and 7 deletions
				
			
		|  | @ -979,6 +979,7 @@ void MenuFactory::create_bbl_object_menu() | |||
|     // Set filament insert menu item here
 | ||||
|     // Set Printable
 | ||||
|     wxMenuItem* menu_item_printable = append_menu_item_printable(&m_object_menu); | ||||
|     append_menu_item_per_object_process(&m_object_menu); | ||||
|     // Enter per object parameters
 | ||||
|     append_menu_item_per_object_settings(&m_object_menu); | ||||
|     m_object_menu.AppendSeparator(); | ||||
|  | @ -1363,6 +1364,19 @@ void MenuFactory::append_menu_item_center(wxMenu* menu) | |||
|         }, m_parent); | ||||
| } | ||||
| 
 | ||||
| void MenuFactory::append_menu_item_per_object_process(wxMenu* menu) | ||||
| { | ||||
|     const std::vector<wxString> names = {_L("Edit Object Process"), _L("Edit Object Process")}; | ||||
|     append_menu_item(menu, wxID_ANY, names[0], names[1], | ||||
|         [](wxCommandEvent&) { | ||||
|             wxGetApp().obj_list()->switch_to_object_process(); | ||||
|         }, "", nullptr, | ||||
|         []() { | ||||
|             Selection& selection = plater()->canvas3D()->get_selection(); | ||||
|             return selection.is_single_full_object() || selection.is_single_full_instance() || selection.is_single_volume(); | ||||
|         }, m_parent); | ||||
| } | ||||
| 
 | ||||
| void MenuFactory::append_menu_item_per_object_settings(wxMenu* menu) | ||||
| { | ||||
|     const std::vector<wxString> names = { _L("Edit in Parameter Table"), _L("Edit print parameters for a single object") }; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Stone Li
						Stone Li