mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-07-30 21:01: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*
|
||||
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.push_back(layer);
|
||||
return layer;
|
||||
layers.emplace_back(new Layer(id, this, height, print_z, slice_z));
|
||||
return layers.back();
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
x
Reference in New Issue
Block a user