Show attribute even if it's zero, if its base value is non-zero

This commit is contained in:
DarkPhoenix
2019-04-15 23:37:08 +03:00
parent 46fa1eb0c6
commit a270dc44d2

View File

@@ -281,7 +281,7 @@ class ItemParams(wx.Panel):
val = getattr(att, "value", None)
value = val if val is not None else att
if self.toggleView == AttributeView.NORMAL and ((attr not in GroupedAttributes and not value) or info is None or not info.published or attr in RequiredSkillAttrs):
if self.toggleView == AttributeView.NORMAL and ((attr not in GroupedAttributes and not (value or valueDefault)) or info is None or not info.published or attr in RequiredSkillAttrs):
return None
if info and info.displayName and self.toggleView == AttributeView.NORMAL: