mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-10 08:17:51 -06:00
Allow specifying print order within each layer (#3685)
* Allow reordering objects regardless of print seq * Add option to control the layer print order * Sort object by their order in object list instead of id * Show print order when print order is the same as the object list * Ensure the print order when print order is same as object list * Update option name --------- Co-authored-by: SoftFever <softfeverever@gmail.com>
This commit is contained in:
parent
e92be73894
commit
26505e23ee
9 changed files with 54 additions and 28 deletions
|
@ -7304,10 +7304,10 @@ void GLCanvas3D::_render_overlays()
|
|||
|
||||
auto curr_plate = wxGetApp().plater()->get_partplate_list().get_curr_plate();
|
||||
auto curr_print_seq = curr_plate->get_real_print_seq();
|
||||
bool sequential_print = (curr_print_seq == PrintSequence::ByObject);
|
||||
const Print* print = fff_print();
|
||||
bool sequential_print = (curr_print_seq == PrintSequence::ByObject) || print->config().print_order == PrintOrder::AsObjectList;
|
||||
std::vector<const ModelInstance*> sorted_instances;
|
||||
if (sequential_print) {
|
||||
const Print* print = fff_print();
|
||||
if (print) {
|
||||
for (const PrintObject *print_object : print->objects())
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue