From 4c188ec0f5268e150b9565e5ce2fedd0a346d92d Mon Sep 17 00:00:00 2001 From: Philipp Tenbrock Date: Wed, 25 Jul 2018 17:28:37 +0200 Subject: [PATCH] Fixed DAE export of groups including sub-groups and sub-parts --- src/Mod/Arch/importDAE.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/Mod/Arch/importDAE.py b/src/Mod/Arch/importDAE.py index a373d08d5f..6ac9bcc22b 100644 --- a/src/Mod/Arch/importDAE.py +++ b/src/Mod/Arch/importDAE.py @@ -197,10 +197,18 @@ def export(exportList,filename,tessellation=1): m = None if obj.isDerivedFrom("Part::Feature"): print("exporting object ",obj.Name, obj.Shape) - m = Mesh.Mesh(triangulate(obj.Shape)) + new_shape = obj.Shape.copy() + new_shape.Placement = obj.getGlobalPlacement() + m = Mesh.Mesh(triangulate(new_shape)) elif obj.isDerivedFrom("Mesh::Feature"): print("exporting object ",obj.Name, obj.Mesh) m = obj.Mesh + elif obj.isDerivedFrom("App::Part"): + for child in obj.OutList: + objectslist.append(child) + continue + else: + continue if m: Topology = m.Topology Facets = m.Facets