mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-13 07:23:13 +08:00
Exclude non-printing nodes from ufp export
CURA-6915
This commit is contained in:
parent
b7ee65d5a5
commit
a56489b885
@ -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…
x
Reference in New Issue
Block a user