Minor fix

This commit is contained in:
Dion Moult
2023-04-01 22:17:35 +11:00
parent 3f2adc1e13
commit 4b8152776d
@@ -190,9 +190,10 @@ class AuthoringData:
@classmethod
def active_representation_type(cls):
representation = tool.Geometry.get_active_representation(bpy.context.active_object)
if representation:
return representation.RepresentationType
if bpy.context.active_object:
representation = tool.Geometry.get_active_representation(bpy.context.active_object)
if representation:
return representation.RepresentationType
@classmethod
def ifc_classes(cls):