From ed18728a80f9608217932b38b07abfb78be1877b Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Fri, 29 Jun 2018 13:07:13 -0300 Subject: [PATCH] Arch: Fixed compatibility with 0.17 --- src/Mod/Arch/ArchComponent.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Mod/Arch/ArchComponent.py b/src/Mod/Arch/ArchComponent.py index 7b2a8e5e25..18ef57593c 100644 --- a/src/Mod/Arch/ArchComponent.py +++ b/src/Mod/Arch/ArchComponent.py @@ -468,7 +468,10 @@ class Component: def __getstate__(self): - return None + # for compatibility with 0.17 + if hasattr(self,"Type"): + return self.Type + return "Component" def __setstate__(self,state):