Fix bug where you couldn't add a plan representation to something with no context identifier

This commit is contained in:
Dion Moult
2021-11-06 17:48:31 +11:00
parent 960610325f
commit 117f663f48
@@ -142,6 +142,12 @@ class Usecase:
pass
elif self.settings["context"].ContextIdentifier == "SurveyPoints":
pass
else:
if isinstance(self.settings["geometry"], bpy.types.TextCurve):
return self.create_text_representation()
shape_representation = self.create_geometric_curve_set_representation(is_2d=True)
shape_representation.RepresentationType = "Annotation2D"
return shape_representation
def create_lighting_representation(self):
return self.file.createIfcShapeRepresentation(