mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	Prevent crash when changing number of extruders
This commit is contained in:
		
							parent
							
								
									d1bb69434e
								
							
						
					
					
						commit
						2e6213fea6
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -738,7 +738,7 @@ sub config {
 | 
			
		|||
    # remove all unused values
 | 
			
		||||
    foreach my $opt_key ($self->_extruder_options) {
 | 
			
		||||
        my $values = $config->get($opt_key);
 | 
			
		||||
        splice @$values, $self->{extruders_count};
 | 
			
		||||
        splice @$values, $self->{extruders_count} if $self->{extruders_count} <= $#$values;
 | 
			
		||||
        $config->set($opt_key, $values);
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue