Fixed bug in skip objects modal, where the object ID markers are not correctly positioned over their corresponding objects in the build plate preview

This commit is contained in:
maziggy
2026-01-03 10:26:06 +01:00
parent 55ec08d4d1
commit 5dae3d3021
6 changed files with 115 additions and 81 deletions
+3 -1
View File
@@ -1181,9 +1181,10 @@ async def get_printable_objects(
if downloaded and temp_path.exists():
with open(temp_path, "rb") as f:
data = f.read()
objects = extract_printable_objects_from_3mf(data, include_positions=True)
objects, bbox_all = extract_printable_objects_from_3mf(data, include_positions=True)
if objects:
client.state.printable_objects = objects
client.state.printable_objects_bbox_all = bbox_all
logger.info(f"Reloaded {len(objects)} objects for printer {printer_id}")
except Exception as e:
logger.debug(f"Failed to reload objects from printer: {e}")
@@ -1219,6 +1220,7 @@ async def get_printable_objects(
"total": len(objects),
"skipped_count": len(client.state.skipped_objects),
"is_printing": client.state.state in ("RUNNING", "PAUSE"),
"bbox_all": getattr(client.state, "printable_objects_bbox_all", None),
}