mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	Merge branch 'master' of https://github.com/prusa3d/Slic3r into opengl_to_cpp
This commit is contained in:
		
						commit
						db95460154
					
				
					 4 changed files with 8 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -233,7 +233,6 @@ sub mouse_event {
 | 
			
		|||
    } elsif ($event->LeftUp) {
 | 
			
		||||
        if ($self->{drag_object}) {
 | 
			
		||||
            $self->{on_instances_moved}->();
 | 
			
		||||
            Slic3r::GUI::_3DScene::reset_current_canvas();            
 | 
			
		||||
        }
 | 
			
		||||
        $self->{drag_start_pos} = undef;
 | 
			
		||||
        $self->{drag_object} = undef;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -279,6 +279,7 @@ sub reload_print {
 | 
			
		|||
    my ($self, $force) = @_;
 | 
			
		||||
 | 
			
		||||
    Slic3r::GUI::_3DScene::reset_volumes($self->canvas);
 | 
			
		||||
    Slic3r::GUI::_3DScene::reset_current_canvas();            
 | 
			
		||||
    $self->_loaded(0);
 | 
			
		||||
 | 
			
		||||
    if (! $self->IsShown && ! $force) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -101,7 +101,12 @@ sub export_gcode {
 | 
			
		|||
                die "The configured post-processing script is not executable: check permissions. ($script)\n";
 | 
			
		||||
            }
 | 
			
		||||
            if ($^O eq 'MSWin32' && $script =~ /\.[pP][lL]/) {
 | 
			
		||||
                system($^X, $script, $output_file);
 | 
			
		||||
                # The current process (^X) may be slic3r.exe or slic3r-console.exe.
 | 
			
		||||
                # Replace it with the current perl interpreter.
 | 
			
		||||
                my($filename, $directories, $suffix) = fileparse($^X);
 | 
			
		||||
                $filename =~ s/^slic3r.*$/perl5\.24\.0\.exe/;
 | 
			
		||||
                my $interpreter = $directories . $filename;
 | 
			
		||||
                system($interpreter, $script, $output_file);
 | 
			
		||||
            } else {
 | 
			
		||||
                system($script, $output_file);
 | 
			
		||||
            }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2454,7 +2454,7 @@ void GLCanvas3D::load_gcode_preview(const GCodePreviewData& preview_data, const
 | 
			
		|||
    if ((m_canvas != nullptr) && (m_print != nullptr))
 | 
			
		||||
    {
 | 
			
		||||
        // ensures that this canvas is current
 | 
			
		||||
        if (!_3DScene::set_current(m_canvas, false))
 | 
			
		||||
        if (!_3DScene::set_current(m_canvas, true))
 | 
			
		||||
            return;
 | 
			
		||||
 | 
			
		||||
        if (m_volumes.empty())
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue