mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 04:31:15 -06:00 
			
		
		
		
	Recalculate SLA supports after undo/redo in case SLA gizmo was active and had supports when the snapshot was taken
This commit is contained in:
		
							parent
							
								
									b55a140ad4
								
							
						
					
					
						commit
						52933d1bab
					
				
					 6 changed files with 72 additions and 18 deletions
				
			
		|  | @ -86,6 +86,8 @@ public: | |||
| 
 | ||||
|     bool is_in_editing_mode() const { return m_editing_mode; } | ||||
|     bool is_selection_rectangle_dragging() const { return m_selection_rectangle.is_dragging(); } | ||||
|     bool has_backend_supports() const; | ||||
|     void reslice_SLA_supports() const; | ||||
| 
 | ||||
| private: | ||||
|     bool on_init(); | ||||
|  | @ -100,6 +102,7 @@ private: | |||
|     void update_mesh(); | ||||
|     void update_cache_entry_normal(unsigned int i) const; | ||||
|     bool unsaved_changes() const; | ||||
|     void take_snapshot_internal(const wxString& desc); | ||||
| 
 | ||||
|     EState m_no_hover_state = Off; | ||||
|     EState m_no_hover_old_state = Off; | ||||
|  | @ -128,6 +131,7 @@ private: | |||
|     bool m_wait_for_up_event = false; | ||||
|     bool m_selection_empty = true; | ||||
|     EState m_old_state = Off; // to be able to see that the gizmo has just been closed (see on_set_state)
 | ||||
|     bool m_internal_snapshot = false; | ||||
| 
 | ||||
|     mutable std::unique_ptr<TriangleMeshSlicer> m_tms; | ||||
|     mutable std::unique_ptr<TriangleMeshSlicer> m_supports_tms; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lukas Matena
						Lukas Matena