BIM: Fixed IFC type icon

This commit is contained in:
Yorik van Havre
2024-12-03 14:27:28 +01:00
committed by Yorik van Havre
parent d0cf727b7a
commit f1988bfd0b

View File

@@ -73,6 +73,7 @@ class ifc_vp_object:
from PySide import QtCore, QtGui # lazy import
rclass = self.Object.IfcClass.replace("StandardCase","")
rclass = self.Object.IfcClass.replace("Type","")
ifcicon = ":/icons/IFC/" + rclass + ".svg"
if QtCore.QFile.exists(ifcicon):
if getattr(self, "ifcclass", "") != rclass: