[BIM] fix name 'self' is not defined error
This commit is contained in:
committed by
Yorik van Havre
parent
d92bb8611e
commit
d044d3da84
@@ -688,7 +688,7 @@ def get_icon(vp):
|
||||
rclass = vp.Object.IfcClass.replace("Type","")
|
||||
ifcicon = ":/icons/IFC/" + rclass + ".svg"
|
||||
if QtCore.QFile.exists(ifcicon):
|
||||
if getattr(self, "ifcclass", "") != rclass:
|
||||
if getattr(vp, "ifcclass", "") != rclass:
|
||||
vp.ifcclass = rclass
|
||||
vp.ifcicon = overlay(ifcicon, ":/icons/IFC.svg")
|
||||
return getattr(vp, "ifcicon", overlay(ifcicon, ":/icons/IFC.svg"))
|
||||
|
||||
Reference in New Issue
Block a user