mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	Fix algorithm switching
This commit is contained in:
		
							parent
							
								
									3ab246df6b
								
							
						
					
					
						commit
						402ae12db2
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -387,8 +387,8 @@ void MyFrame::read_csg_settings(const wxCmdLineParser &parser)
 | 
			
		|||
 | 
			
		||||
void MyFrame::set_renderer_algorithm(const wxString &alg)
 | 
			
		||||
{
 | 
			
		||||
    long alg_idx = get_idx("EnricoShader", CSG_ALGS);
 | 
			
		||||
    if (alg_idx < 0 || alg_idx >= CSG_ALGS.size()) return;
 | 
			
		||||
    long alg_idx = get_idx(alg, CSG_ALGS);
 | 
			
		||||
    if (alg_idx < 0 || alg_idx >= long(CSG_ALGS.size())) return;
 | 
			
		||||
    
 | 
			
		||||
    // If there is a valid display in place, save its camera.
 | 
			
		||||
    auto cam = m_canvas->get_display() ?
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue