From b359b6551e3d0b672244e516d80fd7e9659189af Mon Sep 17 00:00:00 2001 From: Bernd Hahnebach Date: Sun, 22 Mar 2020 13:56:42 +0100 Subject: [PATCH] FEM: python base constraint, do not add stats as Type --- src/Mod/Fem/femobjects/FemConstraint.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/Mod/Fem/femobjects/FemConstraint.py b/src/Mod/Fem/femobjects/FemConstraint.py index 36ffef4d53..dec4357aa2 100644 --- a/src/Mod/Fem/femobjects/FemConstraint.py +++ b/src/Mod/Fem/femobjects/FemConstraint.py @@ -42,10 +42,7 @@ class Proxy(object): # https://forum.freecadweb.org/viewtopic.php?f=18&t=44021 # https://forum.freecadweb.org/viewtopic.php?f=18&t=44009 def __getstate__(self): - return self.Type + return None def __setstate__(self, state): - # some objects had this attribute assignment before the move to this Python base obj class - # these objects will give a setAttr failed error on document loading without this assignment - if state: - self.Type = state + return None