mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	Merge with master branch
This commit is contained in:
		
						commit
						bd4061c3b0
					
				
					 8 changed files with 72 additions and 42 deletions
				
			
		| 
						 | 
				
			
			@ -700,7 +700,7 @@ sub load_files {
 | 
			
		|||
                . "Instead of considering them as multiple objects, should I consider\n"
 | 
			
		||||
                . "this file as a single object having multiple parts?\n"),
 | 
			
		||||
                L('Multi-part object detected'), wxICON_WARNING | wxYES | wxNO);
 | 
			
		||||
            $model->convert_multipart_object if $dialog->ShowModal() == wxID_YES;
 | 
			
		||||
            $model->convert_multipart_object if $dialog->ShowModal(scalar(@$nozzle_dmrs)) == wxID_YES;
 | 
			
		||||
        }
 | 
			
		||||
        
 | 
			
		||||
        if ($one_by_one) {
 | 
			
		||||
| 
						 | 
				
			
			@ -717,7 +717,7 @@ sub load_files {
 | 
			
		|||
            . "Instead of considering them as multiple objects, should I consider\n"
 | 
			
		||||
            . "these files to represent a single object having multiple parts?\n"),
 | 
			
		||||
            L('Multi-part object detected'), wxICON_WARNING | wxYES | wxNO);
 | 
			
		||||
        $new_model->convert_multipart_object if $dialog->ShowModal() == wxID_YES;
 | 
			
		||||
        $new_model->convert_multipart_object if $dialog->ShowModal(scalar(@$nozzle_dmrs)) == wxID_YES;
 | 
			
		||||
        push @obj_idx, $self->load_model_objects(@{$new_model->objects});
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -475,7 +475,8 @@ sub on_btn_split {
 | 
			
		|||
    my $itemData = $self->get_selection;
 | 
			
		||||
    if ($itemData && $itemData->{type} eq 'volume') {
 | 
			
		||||
        my $volume = $self->{model_object}->volumes->[$itemData->{volume_id}];
 | 
			
		||||
        $self->{parts_changed} = 1 if $volume->split > 1;
 | 
			
		||||
        my $nozzle_dmrs = $self->GetParent->GetParent->GetParent->{config}->get('nozzle_diameter');
 | 
			
		||||
        $self->{parts_changed} = 1 if $volume->split(scalar(@$nozzle_dmrs)) > 1;
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
    $self->_parts_changed;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue