assembly: improve backward compatibility

This commit is contained in:
Zheng, Lei 2020-06-15 16:46:11 +08:00
parent 72f64e9ed5
commit 9f904ede3f

View File

@ -1185,7 +1185,8 @@ class ViewProviderAsmElement(ViewProviderAsmOnTop):
if not vobj or hasProperty(vobj.Object,'Radius'):
return
if getattr(vobj,'ShowCS',False) or\
gui.AsmCmdManager.ShowElementCS:
gui.AsmCmdManager.ShowElementCS or\
not hasattr(vobj.Object,'Shape'):
return True
return utils.isInfinite(vobj.Object.Shape)