mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	3DScene's enable_picking variable moved to c++
This commit is contained in:
		
							parent
							
								
									59af3fb866
								
							
						
					
					
						commit
						451c58d58f
					
				
					 10 changed files with 101 additions and 13 deletions
				
			
		|  | @ -19,7 +19,10 @@ sub new { | |||
|     my ($parent, $objects, $model, $print, $config) = @_; | ||||
|      | ||||
|     my $self = $class->SUPER::new($parent); | ||||
|     $self->enable_picking(1); | ||||
| #============================================================================================================================== | ||||
|     Slic3r::GUI::_3DScene::enable_picking($self, 1); | ||||
| #    $self->enable_picking(1); | ||||
| #============================================================================================================================== | ||||
|     $self->enable_moving(1); | ||||
|     $self->select_by('object'); | ||||
|     $self->drag_by('instance'); | ||||
|  |  | |||
|  | @ -153,7 +153,10 @@ sub new { | |||
|     my $canvas; | ||||
|     if ($Slic3r::GUI::have_OpenGL) { | ||||
|         $canvas = $self->{canvas} = Slic3r::GUI::3DScene->new($self); | ||||
|         $canvas->enable_picking(1); | ||||
| #============================================================================================================================== | ||||
|         Slic3r::GUI::_3DScene::enable_picking($canvas, 1); | ||||
| #        $canvas->enable_picking(1); | ||||
| #============================================================================================================================== | ||||
|         $canvas->select_by('volume'); | ||||
|          | ||||
|         $canvas->on_select(sub { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Enrico Turri
						Enrico Turri