mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Exclude non-printing nodes from ufp export
CURA-6915
This commit is contained in:
parent
b7ee65d5a5
commit
a56489b885
1 changed files with 4 additions and 1 deletions
|
@ -152,7 +152,10 @@ class UFPWriter(MeshWriter):
|
|||
To retrieve, use: `archive.getMetadata(METADATA_OBJECTS_PATH)`
|
||||
"""
|
||||
objects_model = CuraApplication.getInstance().getObjectsModel()
|
||||
object_metas = [{"name": item["name"]} for item in objects_model.items]
|
||||
object_metas = [{"name": item["name"]}
|
||||
for item in objects_model.items
|
||||
if item["node"].getMeshData() is not None and not item["node"].callDecoration("isNonPrintingMesh")
|
||||
]
|
||||
|
||||
data = {METADATA_OBJECTS_PATH: object_metas}
|
||||
archive.setMetadata(data)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue