mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	Added the [scale] placeholder. #2791
This commit is contained in:
		
							parent
							
								
									00acd32120
								
							
						
					
					
						commit
						7d81aee62f
					
				
					 2 changed files with 7 additions and 0 deletions
				
			
		|  | @ -432,6 +432,11 @@ sub expanded_output_filepath { | |||
|     $self->placeholder_parser->set(input_filename => $filename); | ||||
|     $self->placeholder_parser->set(input_filename_base => $filename_base); | ||||
|      | ||||
|     # set other variables from model object | ||||
|     $self->placeholder_parser->set_multiple( | ||||
|         scale => [ map $_->model_object->instances->[0]->scaling_factor * 100 . "%", @{$self->objects} ], | ||||
|     ); | ||||
|      | ||||
|     if ($path && -d $path) { | ||||
|         # if output path is an existing directory, we take that and append | ||||
|         # the specified filename format | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Alessandro Ranellucci
						Alessandro Ranellucci