mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	Return objects by reference instead of always cloning
This commit is contained in:
		
							parent
							
								
									1741301973
								
							
						
					
					
						commit
						c0789506e4
					
				
					 30 changed files with 158 additions and 54 deletions
				
			
		| 
						 | 
				
			
			@ -108,7 +108,9 @@ sub fill_surface {
 | 
			
		|||
                        next;
 | 
			
		||||
                    }
 | 
			
		||||
                }
 | 
			
		||||
                push @paths, $path;
 | 
			
		||||
                
 | 
			
		||||
                # make a clone before $collection goes out of scope
 | 
			
		||||
                push @paths, $path->clone;
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
        
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -91,7 +91,9 @@ sub fill_surface {
 | 
			
		|||
                    next;
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
            push @polylines, $polyline;
 | 
			
		||||
            
 | 
			
		||||
            # make a clone before $collection goes out of scope
 | 
			
		||||
            push @polylines, $polyline->clone;
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue