mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	Satisfy test suite and CLI
This commit is contained in:
		
							parent
							
								
									e2f1040a76
								
							
						
					
					
						commit
						5bf0942f45
					
				
					 20 changed files with 300 additions and 272 deletions
				
			
		|  | @ -18,7 +18,7 @@ use constant OPTIONS => [qw( | |||
| 
 | ||||
| has 'id'    => (is => 'rw', required => 1); | ||||
| has $_      => (is => 'ro', required => 1) for @{&OPTIONS}; | ||||
| has 'config'=> (is => 'ro', required => 1); | ||||
| has 'use_relative_e_distances'  => (is => 'ro', default => sub {0}); | ||||
| 
 | ||||
| has 'E'                         => (is => 'rw', default => sub {0} ); | ||||
| has 'absolute_E'                => (is => 'rw', default => sub {0} ); | ||||
|  | @ -56,7 +56,7 @@ sub scaled_wipe_distance { | |||
| sub extrude { | ||||
|     my ($self, $E) = @_; | ||||
|      | ||||
|     $self->E(0) if $self->config->use_relative_e_distances; | ||||
|     $self->E(0) if $self->use_relative_e_distances; | ||||
|     $self->absolute_E($self->absolute_E + $E); | ||||
|     return $self->E($self->E + $E); | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Alessandro Ranellucci
						Alessandro Ranellucci