Comparison with None is now using 'is' operator

This commit is contained in:
David Daish
2020-04-18 18:17:38 +12:00
committed by Yorik van Havre
parent aaf78f9d37
commit 390a093a67

View File

@@ -1004,7 +1004,7 @@ class _Wall(ArchComponent.Component):
if prop == "Length":
if (obj.Base and obj.Length.Value
and hasattr(self,"oldLength") and (self.oldLength != None)
and hasattr(self,"oldLength") and (self.oldLength is not None)
and (self.oldLength != obj.Length.Value)):
if hasattr(obj.Base,'Shape'):