From 390a093a67f0f35b89edb7bfbc2eb6b2ad6c400c Mon Sep 17 00:00:00 2001 From: David Daish Date: Sat, 18 Apr 2020 18:17:38 +1200 Subject: [PATCH] Comparison with None is now using 'is' operator --- src/Mod/Arch/ArchWall.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Arch/ArchWall.py b/src/Mod/Arch/ArchWall.py index 4edd4b0080..1cec3416a9 100644 --- a/src/Mod/Arch/ArchWall.py +++ b/src/Mod/Arch/ArchWall.py @@ -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'):