mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-11-25 21:46:30 +01:00
Incomplete work for porting BoundingBox to XS
This commit is contained in:
1 parent
3e93a14912
commit
9c0a6a79d3
17 files changed
+421
-18
No files matched your search
+2
-2
@@ -88,7 +88,7 @@ sub set_material {
|
||||
my $self = shift;
|
||||
my ($material_id, $attributes) = @_;
|
||||
|
||||
return $self->materials->{$material_id} = Slic3r::Model::Region->new(
|
||||
return $self->materials->{$material_id} = Slic3r::Model::Material->new(
|
||||
model => $self,
|
||||
attributes => $attributes || {},
|
||||
);
|
||||
@@ -319,7 +319,7 @@ sub get_material_name {
|
||||
return $name;
|
||||
}
|
||||
|
||||
package Slic3r::Model::Region;
|
||||
package Slic3r::Model::Material;
|
||||
use Moo;
|
||||
|
||||
has 'model' => (is => 'ro', weak_ref => 1, required => 1);
|
||||
|
||||
Reference in new issue
Block a user