mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	Merge remote-tracking branch 'origin/scene_manipulators'
This commit is contained in:
		
						commit
						00324a14b8
					
				
					 5 changed files with 43 additions and 9 deletions
				
			
		|  | @ -12,7 +12,7 @@ use Wx::Locale gettext => 'L'; | |||
| 
 | ||||
| __PACKAGE__->mk_accessors(qw( | ||||
|     on_arrange on_rotate_object_left on_rotate_object_right on_scale_object_uniformly | ||||
|     on_remove_object on_increase_objects on_decrease_objects)); | ||||
|     on_remove_object on_increase_objects on_decrease_objects on_enable_action_buttons)); | ||||
| 
 | ||||
| sub new { | ||||
|     my $class = shift; | ||||
|  | @ -176,6 +176,11 @@ sub set_on_model_update { | |||
|     $self->on_model_update($cb); | ||||
| } | ||||
| 
 | ||||
| sub set_on_enable_action_buttons { | ||||
|     my ($self, $cb) = @_; | ||||
|     $self->on_enable_action_buttons($cb); | ||||
| } | ||||
| 
 | ||||
| sub reload_scene { | ||||
|     my ($self, $force) = @_; | ||||
| 
 | ||||
|  | @ -217,10 +222,12 @@ sub reload_scene { | |||
|         if (!$self->{model}->fits_print_volume($self->{config})) { | ||||
|             $self->set_warning_enabled(1); | ||||
|             Slic3r::GUI::_3DScene::generate_warning_texture(L("Detected object outside print volume")); | ||||
|             $self->on_enable_action_buttons->(0) if ($self->on_enable_action_buttons); | ||||
|         } else { | ||||
|             $self->set_warning_enabled(0); | ||||
|             $self->volumes->update_outside_state($self->{config}, 1); | ||||
|             Slic3r::GUI::_3DScene::reset_warning_texture(); | ||||
|             $self->on_enable_action_buttons->(1) if ($self->on_enable_action_buttons); | ||||
|         } | ||||
|     } | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 bubnikv
						bubnikv