From ab1520b872821414c6ce4a15fb85d471ac2a2b03 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):