mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-20 07:11:12 -06:00 
			
		
		
		
	Fixed regression causing wrong relative positions of objects after splitting in plater. #1758
This commit is contained in:
		
							parent
							
								
									5ce4de0544
								
							
						
					
					
						commit
						72a6848f1b
					
				
					 1 changed files with 6 additions and 1 deletions
				
			
		|  | @ -633,6 +633,7 @@ sub split_object { | |||
|     # create a bogus Model object, we only need to instantiate the new Model::Object objects | ||||
|     my $new_model = Slic3r::Model->new; | ||||
|      | ||||
|     my @model_objects = (); | ||||
|     foreach my $mesh (@new_meshes) { | ||||
|         $mesh->repair; | ||||
|          | ||||
|  | @ -659,8 +660,12 @@ sub split_object { | |||
|         } | ||||
|         # we need to center this single object around origin | ||||
|         $model_object->center_around_origin; | ||||
|         $self->load_model_objects($model_object); | ||||
|         push @model_objects, $model_object; | ||||
|     } | ||||
|      | ||||
|     # load all model objects at once, otherwise the plate would be rearranged after each one | ||||
|     # causing original positions not to be kept | ||||
|     $self->load_model_objects(@model_objects); | ||||
| } | ||||
| 
 | ||||
| sub export_gcode { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Alessandro Ranellucci
						Alessandro Ranellucci