mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	Don't return the cached bounding box but clone it
This commit is contained in:
		
							parent
							
								
									bed1625d6b
								
							
						
					
					
						commit
						f4d12b5930
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -171,7 +171,7 @@ sub bounding_box {
 | 
			
		|||
    if (!defined $self->_bounding_box) {
 | 
			
		||||
        $self->_bounding_box(Slic3r::Geometry::BoundingBox->merge(map $_->bounding_box, @{$self->objects}));
 | 
			
		||||
    }
 | 
			
		||||
    return $self->_bounding_box;
 | 
			
		||||
    return $self->_bounding_box->clone;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
sub align_to_origin {
 | 
			
		||||
| 
						 | 
				
			
			@ -368,7 +368,7 @@ sub bounding_box {
 | 
			
		|||
        $bounding_box->merge(Slic3r::Geometry::BoundingBox->new_from_bb($_->bb3)) for @meshes;
 | 
			
		||||
        $self->_bounding_box($bounding_box);
 | 
			
		||||
    }
 | 
			
		||||
    return $self->_bounding_box;
 | 
			
		||||
    return $self->_bounding_box->clone;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
sub align_to_origin {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue