mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	Bugfix: enabling raft layers generated support for the whole model. Includes regression test. #1375
This commit is contained in:
		
							parent
							
								
									e0da81e8bf
								
							
						
					
					
						commit
						a7989e382c
					
				
					 3 changed files with 17 additions and 8 deletions
				
			
		
							
								
								
									
										14
									
								
								t/support.t
									
										
									
									
									
								
							
							
						
						
									
										14
									
								
								t/support.t
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -66,7 +66,7 @@ use Slic3r::Test;
 | 
			
		|||
    $config->set('support_material_interface_extruder', 2);
 | 
			
		||||
    $config->set('layer_height', 0.4);
 | 
			
		||||
    $config->set('first_layer_height', '100%');
 | 
			
		||||
    my $print = Slic3r::Test::init_print('20mm_cube', config => $config);
 | 
			
		||||
    my $print = Slic3r::Test::init_print('overhang', config => $config);
 | 
			
		||||
    ok my $gcode = Slic3r::Test::gcode($print), 'no conflict between raft/support and brim';
 | 
			
		||||
    
 | 
			
		||||
    my $tool = 0;
 | 
			
		||||
| 
						 | 
				
			
			@ -75,9 +75,15 @@ use Slic3r::Test;
 | 
			
		|||
        
 | 
			
		||||
        if ($cmd =~ /^T(\d+)/) {
 | 
			
		||||
            $tool = $1;
 | 
			
		||||
        } elsif ($info->{extruding} && $self->Z <= ($config->raft_layers * $config->layer_height)) {
 | 
			
		||||
            fail 'not extruding raft/brim with support material extruder'
 | 
			
		||||
                if $tool != ($config->support_material_extruder-1);
 | 
			
		||||
        } elsif ($info->{extruding}) {
 | 
			
		||||
            if ($self->Z <= ($config->raft_layers * $config->layer_height)) {
 | 
			
		||||
                fail 'not extruding raft/brim with support material extruder'
 | 
			
		||||
                    if $tool != ($config->support_material_extruder-1);
 | 
			
		||||
            } else {
 | 
			
		||||
                fail 'support material exceeds raft layers'
 | 
			
		||||
                    if $tool == $config->support_material_extruder-1;
 | 
			
		||||
                # TODO: we should test that full support is generated when we use raft too
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    });
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue