mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	Optimization in Polyline instantiation
This commit is contained in:
		
							parent
							
								
									27c421c27f
								
							
						
					
					
						commit
						8061cc6e30
					
				
					 14 changed files with 40 additions and 45 deletions
				
			
		|  | @ -295,7 +295,7 @@ sub extrude_path { | |||
|             $path_length += $line_length; | ||||
|             $gcode .= $self->G1($line->[B], undef, $e * $line_length, $description); | ||||
|         } | ||||
|         $self->wipe_path(Slic3r::Polyline->new([ reverse @{$path->points} ])) | ||||
|         $self->wipe_path(Slic3r::Polyline->new(reverse @{$path->points})) | ||||
|             if $self->extruder->wipe; | ||||
|     } | ||||
|      | ||||
|  | @ -409,7 +409,7 @@ sub retract { | |||
|     # wipe | ||||
|     my $wipe_path; | ||||
|     if ($self->extruder->wipe && $self->wipe_path) { | ||||
|         $wipe_path = Slic3r::Polyline->new([ $self->last_pos, @{$self->wipe_path}[1..$#{$self->wipe_path}] ]) | ||||
|         $wipe_path = Slic3r::Polyline->new($self->last_pos, @{$self->wipe_path}[1..$#{$self->wipe_path}]) | ||||
|             ->clip_start($self->extruder->scaled_wipe_distance); | ||||
|     } | ||||
|      | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Alessandro Ranellucci
						Alessandro Ranellucci