mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	Use ->ptr() for CoolingBuffer too
This commit is contained in:
		
							parent
							
								
									2d14ddb955
								
							
						
					
					
						commit
						5c54acf9ac
					
				
					 2 changed files with 5 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -972,7 +972,7 @@ sub write_gcode {
 | 
			
		|||
                    }
 | 
			
		||||
                    print $fh $buffer->append(
 | 
			
		||||
                        $layer_gcode->process_layer($layer, [$copy]),
 | 
			
		||||
                        $layer->object."",
 | 
			
		||||
                        $layer->object->ptr,
 | 
			
		||||
                        $layer->id,
 | 
			
		||||
                        $layer->print_z,
 | 
			
		||||
                    );
 | 
			
		||||
| 
						 | 
				
			
			@ -1005,7 +1005,7 @@ sub write_gcode {
 | 
			
		|||
                foreach my $layer (@{ $layers{$print_z}[$obj_idx] // [] }) {
 | 
			
		||||
                    print $fh $buffer->append(
 | 
			
		||||
                        $layer_gcode->process_layer($layer, $layer->object->_shifted_copies),
 | 
			
		||||
                        $layer->object . ref($layer),  # differentiate $obj_id between normal layers and support layers
 | 
			
		||||
                        $layer->object->ptr . ref($layer),  # differentiate $obj_id between normal layers and support layers
 | 
			
		||||
                        $layer->id,
 | 
			
		||||
                        $layer->print_z,
 | 
			
		||||
                    );
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -57,6 +57,9 @@
 | 
			
		|||
 | 
			
		||||
    Ref<ExPolygonCollection> slices()
 | 
			
		||||
        %code%{ RETVAL = &THIS->slices; %};
 | 
			
		||||
    
 | 
			
		||||
    int ptr()
 | 
			
		||||
        %code%{ RETVAL = (int)(intptr_t)THIS; %};
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
%name{Slic3r::Layer::Support} class SupportLayer {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue