mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 04:31:15 -06:00 
			
		
		
		
	Commit 4a8a1fac7b re-made as linux-only
				
					
				
			This commit is contained in:
		
							parent
							
								
									6eafc97302
								
							
						
					
					
						commit
						731e5a36b7
					
				
					 1 changed files with 18 additions and 6 deletions
				
			
		|  | @ -366,12 +366,7 @@ void Preview::load_print(bool keep_z_range) | |||
| 
 | ||||
| void Preview::reload_print(bool keep_volumes) | ||||
| { | ||||
|     if (!IsShown()) | ||||
|     { | ||||
|         m_volumes_cleanup_required = !keep_volumes; | ||||
|         return; | ||||
|     } | ||||
| 
 | ||||
| #ifndef __linux__ | ||||
|     if (m_volumes_cleanup_required || !keep_volumes) | ||||
|     { | ||||
|         m_canvas->reset_volumes(); | ||||
|  | @ -379,6 +374,23 @@ void Preview::reload_print(bool keep_volumes) | |||
|         m_loaded = false; | ||||
|         m_volumes_cleanup_required = false; | ||||
|     } | ||||
| #endif // __linux__
 | ||||
| 
 | ||||
|     if (!IsShown()) | ||||
|     { | ||||
|         m_volumes_cleanup_required = !keep_volumes; | ||||
|         return; | ||||
|     } | ||||
| 
 | ||||
| #ifdef __linux__ | ||||
|     if (m_volumes_cleanup_required || !keep_volumes) | ||||
|     { | ||||
|         m_canvas->reset_volumes(); | ||||
|         m_canvas->reset_legend_texture(); | ||||
|         m_loaded = false; | ||||
|         m_volumes_cleanup_required = false; | ||||
|     } | ||||
| #endif // __linux__
 | ||||
| 
 | ||||
|     load_print(); | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Enrico Turri
						Enrico Turri