mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-23 18:26:25 +00:00
Minor fix
This commit is contained in:
@@ -190,9 +190,10 @@ class AuthoringData:
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def active_representation_type(cls):
|
def active_representation_type(cls):
|
||||||
representation = tool.Geometry.get_active_representation(bpy.context.active_object)
|
if bpy.context.active_object:
|
||||||
if representation:
|
representation = tool.Geometry.get_active_representation(bpy.context.active_object)
|
||||||
return representation.RepresentationType
|
if representation:
|
||||||
|
return representation.RepresentationType
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def ifc_classes(cls):
|
def ifc_classes(cls):
|
||||||
|
|||||||
Reference in New Issue
Block a user