From 061922aea2568f6d39c3c2237d6dd2da1e2ecf27 Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Sat, 1 Apr 2023 22:17:35 +1100 Subject: [PATCH] Minor fix --- src/blenderbim/blenderbim/bim/module/model/data.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/blenderbim/blenderbim/bim/module/model/data.py b/src/blenderbim/blenderbim/bim/module/model/data.py index 9f394dc076..61a99eef7b 100644 --- a/src/blenderbim/blenderbim/bim/module/model/data.py +++ b/src/blenderbim/blenderbim/bim/module/model/data.py @@ -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):