WIP: Invalidating shared support spots in Print::apply()

This commit is contained in:
Vojtech Bubnik 2023-01-11 14:47:40 +01:00
parent 02b39d7282
commit c3fec7b349
2 changed files with 26 additions and 0 deletions

View file

@ -609,6 +609,12 @@ private:
// Return 4 wipe tower corners in the world coordinates (shifted and rotated), including the wipe tower brim.
std::vector<Point> first_layer_wipe_tower_corners() const;
// Returns true if any of the print_objects has print_object_step valid.
// That means data shared by all print objects of the print_objects span may still use the shared data.
// Otherwise the shared data shall be released.
// Unguarded variant, thus it shall only be called from main thread with background processing stopped.
static bool is_shared_print_object_step_valid_unguarded(SpanOfConstPtrs<PrintObject> print_objects, PrintObjectStep print_object_step);
PrintConfig m_config;
PrintObjectConfig m_default_object_config;
PrintRegionConfig m_default_region_config;