add those 2 dumb functions to viewprovider class, in addition to _FemConstraintGeneric.py class. It fixed json error for me.
This solution is aslo form FreeCAD forum.
https://forum.freecadweb.org/viewtopic. ... 94#p373094
src/Mod/Fem/femguiobjects/_ViewProviderFemGenericConstraint.py
Code: Select all
def __getstate__(self):
return None
def __setstate__(self,state):
return None
I read your latest branch, you have deleted those 3 functions from _FemConstraintGeneric.py
Code: Select all
def execute(self, obj):
''' Called on document recompute '''
return
def __getstate__(self):
# Called during document saving
return self.Type
def __setstate__(self, state):
if state:
self.Type = state
Those 3 functions should be taken back. and also some comment to protect those dumb functions , not to be deleted in the future.