mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-11-09 03:12:26 +00:00
Added sequential print order id to 3D scene labels
This commit is contained in:
1 parent
0937c576ac
commit
6fa49f5931
4 files changed
+72
-38
No files matched your search
@@ -1101,7 +1101,11 @@ static inline std::vector<const PrintInstance*> sort_object_instances_by_max_z(c
|
||||
}
|
||||
|
||||
// Produce a vector of PrintObjects in the order of their respective ModelObjects in print.model().
|
||||
static inline std::vector<const PrintInstance*> sort_object_instances_by_model_order(const Print &print)
|
||||
#if ENABLE_SHOW_SCENE_LABELS
|
||||
std::vector<const PrintInstance*> sort_object_instances_by_model_order(const Print& print)
|
||||
#else
|
||||
static inline std::vector<const PrintInstance*> sort_object_instances_by_model_order(const Print& print)
|
||||
#endif // ENABLE_SHOW_SCENE_LABELS
|
||||
{
|
||||
// Build up map from ModelInstance* to PrintInstance*
|
||||
std::vector<std::pair<const ModelInstance*, const PrintInstance*>> model_instance_to_print_instance;
|
||||
|
||||
@@ -418,6 +418,10 @@ private:
|
||||
friend class WipeTowerIntegration;
|
||||
};
|
||||
|
||||
#if ENABLE_SHOW_SCENE_LABELS
|
||||
std::vector<const PrintInstance*> sort_object_instances_by_model_order(const Print& print);
|
||||
#endif // ENABLE_SHOW_SCENE_LABELS
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user