mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	Remove package variable $Slic3r::Config
This commit is contained in:
		
							parent
							
								
									0693cfb116
								
							
						
					
					
						commit
						1157a7f859
					
				
					 11 changed files with 91 additions and 82 deletions
				
			
		| 
						 | 
				
			
			@ -127,8 +127,8 @@ sub slice {
 | 
			
		|||
    
 | 
			
		||||
        # add raft layers
 | 
			
		||||
        if ($self->config->raft_layers > 0) {
 | 
			
		||||
            $print_z += $Slic3r::Config->get_value('first_layer_height');
 | 
			
		||||
            $print_z += $Slic3r::Config->layer_height * ($self->config->raft_layers - 1);
 | 
			
		||||
            $print_z += $self->config->get_value('first_layer_height');
 | 
			
		||||
            $print_z += $self->config->layer_height * ($self->config->raft_layers - 1);
 | 
			
		||||
            $id += $self->config->raft_layers;
 | 
			
		||||
        }
 | 
			
		||||
    
 | 
			
		||||
| 
						 | 
				
			
			@ -137,8 +137,8 @@ sub slice {
 | 
			
		|||
        while (!@{$self->layers} || ($slice_z - $height) <= $max_z) {
 | 
			
		||||
            # assign the default height to the layer according to the general settings
 | 
			
		||||
            $height = ($id == 0)
 | 
			
		||||
                ? $Slic3r::Config->get_value('first_layer_height')
 | 
			
		||||
                : $Slic3r::Config->layer_height;
 | 
			
		||||
                ? $self->config->get_value('first_layer_height')
 | 
			
		||||
                : $self->config->layer_height;
 | 
			
		||||
        
 | 
			
		||||
            # look for an applicable custom range
 | 
			
		||||
            if (my $range = first { $_->[0] <= $slice_z && $_->[1] > $slice_z } @{$self->layer_height_ranges}) {
 | 
			
		||||
| 
						 | 
				
			
			@ -346,6 +346,7 @@ sub make_perimeters {
 | 
			
		|||
    }
 | 
			
		||||
    
 | 
			
		||||
    Slic3r::parallelize(
 | 
			
		||||
        threads => $self->config->threads,
 | 
			
		||||
        items => sub { 0 .. ($self->layer_count-1) },
 | 
			
		||||
        thread_cb => sub {
 | 
			
		||||
            my $q = shift;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -179,7 +179,7 @@ sub contact_area {
 | 
			
		|||
            ###$contact_z = $layer->print_z - $layer->height;
 | 
			
		||||
            
 | 
			
		||||
            # ignore this contact area if it's too low
 | 
			
		||||
            next if $contact_z < $Slic3r::Config->get_value('first_layer_height');
 | 
			
		||||
            next if $contact_z < $self->config->get_value('first_layer_height');
 | 
			
		||||
            
 | 
			
		||||
            $contact{$contact_z}  = [ @contact ];
 | 
			
		||||
            $overhang{$contact_z} = [ @overhang ];
 | 
			
		||||
| 
						 | 
				
			
			@ -609,6 +609,7 @@ sub generate_toolpaths {
 | 
			
		|||
    };
 | 
			
		||||
    
 | 
			
		||||
    Slic3r::parallelize(
 | 
			
		||||
        threads => $self->config->threads,
 | 
			
		||||
        items => [ 0 .. $#{$object->support_layers} ],
 | 
			
		||||
        thread_cb => sub {
 | 
			
		||||
            my $q = shift;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue