From 9c7af25d267bafb8364eb2a2220f4b3def3dd2b7 Mon Sep 17 00:00:00 2001 From: Uwe Date: Wed, 27 Jul 2022 02:55:29 +0200 Subject: [PATCH] [FEM] BodyHeat constraint: hide unused property - the constraint does not take a references and when trying to set one as user because one thinks this empty property must be set, one gets a recompute error --- src/Mod/Fem/femobjects/constraint_bodyheatsource.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Mod/Fem/femobjects/constraint_bodyheatsource.py b/src/Mod/Fem/femobjects/constraint_bodyheatsource.py index 55df62f475..f4b17fa5ee 100644 --- a/src/Mod/Fem/femobjects/constraint_bodyheatsource.py +++ b/src/Mod/Fem/femobjects/constraint_bodyheatsource.py @@ -40,6 +40,8 @@ class ConstraintBodyHeatSource(base_fempythonobject.BaseFemPythonObject): def __init__(self, obj): super(ConstraintBodyHeatSource, self).__init__(obj) self.add_properties(obj) + # the constraint does not take any references, thus hide this property + obj.setEditorMode("References", 2) def onDocumentRestored(self, obj): self.add_properties(obj)