mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-07-31 20:31:59 +08:00
Collapsed the add_layer method.
This commit is contained in:
parent
7f3e00f581
commit
ac1152f42d
@ -171,9 +171,8 @@ PrintObject::clear_layers()
|
|||||||
Layer*
|
Layer*
|
||||||
PrintObject::add_layer(int id, coordf_t height, coordf_t print_z, coordf_t slice_z)
|
PrintObject::add_layer(int id, coordf_t height, coordf_t print_z, coordf_t slice_z)
|
||||||
{
|
{
|
||||||
Layer* layer = new Layer(id, this, height, print_z, slice_z);
|
layers.emplace_back(new Layer(id, this, height, print_z, slice_z));
|
||||||
layers.push_back(layer);
|
return layers.back();
|
||||||
return layer;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user