mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	Remove scale, rotate, duplicate, duplicate_grid from config (but leave them in CLI)
This commit is contained in:
		
							parent
							
								
									385e0e0974
								
							
						
					
					
						commit
						bfa2ee2770
					
				
					 4 changed files with 18 additions and 50 deletions
				
			
		|  | @ -7,7 +7,7 @@ use List::Util qw(first); | |||
| 
 | ||||
| # cemetery of old config settings | ||||
| our @Ignore = qw(duplicate_x duplicate_y multiply_x multiply_y support_material_tool acceleration | ||||
|     adjust_overhang_flow standby_temperature); | ||||
|     adjust_overhang_flow standby_temperature scale rotate duplicate duplicate_grid); | ||||
| 
 | ||||
| our $Options = print_config_def(); | ||||
| 
 | ||||
|  | @ -19,15 +19,6 @@ our $Options = print_config_def(); | |||
|     } | ||||
| } | ||||
| 
 | ||||
| # sub _get { | ||||
| #     my ($self, $opt_key) = @_; | ||||
| #     use XXX; | ||||
| #     if (!defined first { $_ eq $opt_key } @{$self->get_keys}) { | ||||
| #         ZZZ $opt_key; | ||||
| #     } | ||||
| #     return $self->get($opt_key); | ||||
| # } | ||||
| 
 | ||||
| sub new_from_defaults { | ||||
|     my $class = shift; | ||||
|     my (@opt_keys) = @_; | ||||
|  |  | |||
|  | @ -57,7 +57,6 @@ sub set_model { | |||
|         $instance->scaling_factor($instance->scaling_factor * $self->scale); | ||||
|         $instance->rotation($instance->rotation + $self->rotate); | ||||
|     } | ||||
|     # TODO: --scale --rotate, --duplicate* shouldn't be stored in config | ||||
|      | ||||
|     if ($self->duplicate_grid->[X] > 1 || $self->duplicate_grid->[Y] > 1) { | ||||
|         $model->duplicate_objects_grid($self->duplicate_grid, $self->_print->config->duplicate_distance); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Alessandro Ranellucci
						Alessandro Ranellucci