mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	Merge branch 'master' into xsdata
This commit is contained in:
		
						commit
						d786dd6c1c
					
				
					 1 changed files with 15 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -1096,6 +1096,11 @@ sub object_settings_dialog {
 | 
			
		|||
        ($obj_idx, undef) = $self->selected_object;
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
    # validate config before opening the settings dialog because
 | 
			
		||||
    # that dialog can't be closed if validation fails, but user
 | 
			
		||||
    # can't fix any error which is outside that dialog
 | 
			
		||||
    return unless $self->validate_config;
 | 
			
		||||
    
 | 
			
		||||
    my $dlg = Slic3r::GUI::Plater::ObjectSettingsDialog->new($self,
 | 
			
		||||
		object => $self->{objects}[$obj_idx],
 | 
			
		||||
	);
 | 
			
		||||
| 
						 | 
				
			
			@ -1169,6 +1174,16 @@ sub selected_object {
 | 
			
		|||
    return ($obj_idx, $self->{objects}[$obj_idx]),
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
sub validate_config {
 | 
			
		||||
    my $self = shift;
 | 
			
		||||
    
 | 
			
		||||
    eval {
 | 
			
		||||
        $self->skeinpanel->config->validate;
 | 
			
		||||
    };
 | 
			
		||||
    return 0 if Slic3r::GUI::catch_error($self);    
 | 
			
		||||
    return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
sub statusbar {
 | 
			
		||||
    my $self = shift;
 | 
			
		||||
    return $self->skeinpanel->GetParent->{statusbar};
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue