mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 04:31:15 -06:00 
			
		
		
		
	3DScene bed variables moved to c++
This commit is contained in:
		
							parent
							
								
									43784f3409
								
							
						
					
					
						commit
						2b4829a4b9
					
				
					 12 changed files with 425 additions and 167 deletions
				
			
		|  | @ -255,7 +255,10 @@ sub reload_scene { | |||
| 
 | ||||
| sub update_bed_size { | ||||
|     my ($self) = @_; | ||||
|     $self->set_bed_shape($self->{config}->bed_shape); | ||||
| #============================================================================================================================== | ||||
|     Slic3r::GUI::_3DScene::set_bed_shape($self, $self->{config}->bed_shape); | ||||
| #    $self->set_bed_shape($self->{config}->bed_shape); | ||||
| #============================================================================================================================== | ||||
| } | ||||
| 
 | ||||
| # Called by the Platter wxNotebook when this page is activated. | ||||
|  |  | |||
|  | @ -474,7 +474,10 @@ sub set_z_idx_high | |||
| 
 | ||||
| sub set_bed_shape { | ||||
|     my ($self, $bed_shape) = @_; | ||||
|     $self->canvas->set_bed_shape($bed_shape); | ||||
| #============================================================================================================================== | ||||
|     Slic3r::GUI::_3DScene::set_bed_shape($self->canvas, $bed_shape); | ||||
| #    $self->canvas->set_bed_shape($bed_shape); | ||||
| #============================================================================================================================== | ||||
| } | ||||
| 
 | ||||
| sub set_number_extruders { | ||||
|  |  | |||
|  | @ -113,7 +113,10 @@ sub new { | |||
|     if ($Slic3r::GUI::have_OpenGL) { | ||||
|         $canvas = $self->{canvas} = Slic3r::GUI::3DScene->new($self); | ||||
|         $canvas->load_object($self->{model_object}, undef, undef, [0]); | ||||
|         $canvas->set_auto_bed_shape; | ||||
| #============================================================================================================================== | ||||
|         Slic3r::GUI::_3DScene::set_auto_bed_shape($canvas); | ||||
| #        $canvas->set_auto_bed_shape; | ||||
| #============================================================================================================================== | ||||
|         $canvas->SetSize([500,500]); | ||||
|         $canvas->SetMinSize($canvas->GetSize); | ||||
|     } | ||||
|  |  | |||
|  | @ -160,7 +160,10 @@ sub new { | |||
|         }); | ||||
|          | ||||
|         $canvas->load_object($self->{model_object}, undef, undef, [0]); | ||||
|         $canvas->set_auto_bed_shape; | ||||
| #============================================================================================================================== | ||||
|         Slic3r::GUI::_3DScene::set_auto_bed_shape($canvas); | ||||
| #        $canvas->set_auto_bed_shape; | ||||
| #============================================================================================================================== | ||||
|         $canvas->SetSize([500,700]); | ||||
|         $canvas->update_volumes_colors_by_extruder($self->GetParent->GetParent->GetParent->{config}); | ||||
|     } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Enrico Turri
						Enrico Turri