mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	Removed StringMap
This commit is contained in:
		
							parent
							
								
									05b2993769
								
							
						
					
					
						commit
						54a199919b
					
				
					 11 changed files with 35 additions and 162 deletions
				
			
		| 
						 | 
				
			
			@ -69,7 +69,11 @@ sub set_material {
 | 
			
		|||
    my $self = shift;
 | 
			
		||||
    my ($material_id, $attributes) = @_;
 | 
			
		||||
    
 | 
			
		||||
    return $self->_set_material($material_id, $attributes || {});
 | 
			
		||||
    $attributes //= {};
 | 
			
		||||
    
 | 
			
		||||
    my $material = $self->_set_material($material_id);
 | 
			
		||||
    $material->set_attribute($_, $attributes->{$_}) for keys %$attributes;
 | 
			
		||||
    return $material;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
sub duplicate_objects_grid {
 | 
			
		||||
| 
						 | 
				
			
			@ -218,7 +222,8 @@ sub center_instances_around_point {
 | 
			
		|||
        foreach my $instance (@{$object->instances}) {
 | 
			
		||||
            $instance->set_offset(Slic3r::Pointf->new(
 | 
			
		||||
                $instance->offset->x + $shift[X],
 | 
			
		||||
                $instance->offset->y + $shift[Y]));
 | 
			
		||||
                $instance->offset->y + $shift[Y],  #++
 | 
			
		||||
            ));
 | 
			
		||||
        }
 | 
			
		||||
        $object->update_bounding_box;
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			@ -309,10 +314,6 @@ sub get_material_name {
 | 
			
		|||
 | 
			
		||||
package Slic3r::Model::Material;
 | 
			
		||||
 | 
			
		||||
sub attributes {
 | 
			
		||||
    $_[0]->_attributes->to_hash;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
package Slic3r::Model::Object;
 | 
			
		||||
 | 
			
		||||
use File::Basename qw(basename);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue