From 4de35bc25234013929672ed00da308a21fab9d2b Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Mon, 2 Sep 2019 21:16:21 +1000 Subject: [PATCH] Fix missing data for type products --- export.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/export.py b/export.py index 084ca8766c..90dee576e1 100644 --- a/export.py +++ b/export.py @@ -171,6 +171,9 @@ class IfcParser(): return [{ 'ifc': None, 'raw': object, + 'location': object.location, + 'up_axis': object.matrix_world.to_quaternion() @ Vector((0, 0, 1)), + 'forward_axis': object.matrix_world.to_quaternion() @ Vector((1, 0, 0)), 'class': self.get_ifc_class(object.name), 'representation': self.get_representation_reference(object.data.name), 'attributes': self.get_object_attributes(object)