mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 04:31:15 -06:00 
			
		
		
		
	Storing the active printer technology onto the Undo / Redo stack,
remembering the last selected Printer profile for the SLA and FDM technologies separately, and activating them on Undo / Redo. When switching the technologies, user is asked whether to discard the modified profiles or not.
This commit is contained in:
		
							parent
							
								
									631a952f94
								
							
						
					
					
						commit
						a0ea96968d
					
				
					 14 changed files with 141 additions and 119 deletions
				
			
		|  | @ -29,7 +29,7 @@ void GLGizmoFlatten::on_set_state() | |||
|     // m_model_object pointer can be invalid (for instance because of undo/redo action),
 | ||||
|     // we should recover it from the object id
 | ||||
|     m_model_object = nullptr; | ||||
|     for (const auto mo : *wxGetApp().model_objects()) { | ||||
|     for (const auto mo : wxGetApp().model().objects) { | ||||
|         if (mo->id() == m_model_object_id) { | ||||
|             m_model_object = mo; | ||||
|             break; | ||||
|  |  | |||
|  | @ -1049,7 +1049,7 @@ void GLGizmoSlaSupports::on_set_state() | |||
|     // we should recover it from the object id
 | ||||
|     const ModelObject* old_model_object = m_model_object; | ||||
|     m_model_object = nullptr; | ||||
|     for (const auto mo : *wxGetApp().model_objects()) { | ||||
|     for (const auto mo : wxGetApp().model().objects) { | ||||
|         if (mo->id() == m_current_mesh_object_id) { | ||||
|             m_model_object = mo; | ||||
|             break; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 bubnikv
						bubnikv