mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 04:31:15 -06:00 
			
		
		
		
	Memory optimizations broke thin walls
This commit is contained in:
		
							parent
							
								
									b246480535
								
							
						
					
					
						commit
						22f8d57b36
					
				
					 2 changed files with 7 additions and 4 deletions
				
			
		|  | @ -68,9 +68,12 @@ sub change_layer { | |||
| sub extrude { | ||||
|     my $self = shift; | ||||
|      | ||||
|     return $_[0]->isa('Slic3r::ExtrusionLoop') | ||||
|         ? $self->extrude_loop(@_) | ||||
|         : $self->extrude_path(@_); | ||||
|     if ($_[0]->isa('Slic3r::ExtrusionLoop')) { | ||||
|         $self->extrude_loop(@_); | ||||
|     } else { | ||||
|         $_[0]->deserialize; | ||||
|         $self->extrude_path(@_); | ||||
|     } | ||||
| } | ||||
| 
 | ||||
| sub extrude_loop { | ||||
|  |  | |||
|  | @ -714,7 +714,7 @@ sub angle3points { | |||
| 
 | ||||
| sub polyline_remove_parallel_continuous_edges { | ||||
|     my ($points, $isPolygon) = @_; | ||||
|      | ||||
|     use XXX; ZZZ $points if !eval {@$points}; | ||||
|     for (my $i = $isPolygon ? 0 : 2; $i <= $#$points && @$points >= 3; $i++) { | ||||
|         if (Slic3r::Geometry::lines_parallel([$points->[$i-2], $points->[$i-1]], [$points->[$i-1], $points->[$i]])) { | ||||
|             # we can remove $points->[$i-1] | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Alessandro Ranellucci
						Alessandro Ranellucci