mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 04:31:15 -06:00 
			
		
		
		
	Fixed rendering of multiple interlaced layers in toolpaths preview
This commit is contained in:
		
							parent
							
								
									5d3cd792eb
								
							
						
					
					
						commit
						ea40c4d1b0
					
				
					 1 changed files with 7 additions and 3 deletions
				
			
		|  | @ -238,11 +238,8 @@ sub Render { | |||
|         gluTessCallback($tess, GLU_TESS_EDGE_FLAG, 'DEFAULT'); | ||||
|     } | ||||
|      | ||||
|     my $skirt_drawn = 0; | ||||
|     my $brim_drawn = 0; | ||||
|     foreach my $layer (@{$self->layers}) { | ||||
|         my $object = $layer->object; | ||||
|         my $print_z = $layer->print_z; | ||||
|          | ||||
|         # draw slice contour | ||||
|         { | ||||
|  | @ -277,6 +274,13 @@ sub Render { | |||
|                 glPopMatrix(); | ||||
|             } | ||||
|         } | ||||
|     } | ||||
|      | ||||
|     my $skirt_drawn = 0; | ||||
|     my $brim_drawn = 0; | ||||
|     foreach my $layer (@{$self->layers}) { | ||||
|         my $object = $layer->object; | ||||
|         my $print_z = $layer->print_z; | ||||
|          | ||||
|         # draw brim | ||||
|         if ($self->print->step_done(STEP_BRIM) && $layer->id == 0 && !$brim_drawn) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Alessandro Ranellucci
						Alessandro Ranellucci