[FEM] update bodyHeatSource
- to the state of the other constraints (this constraint is currently completely broken by the way)
This commit is contained in:
@@ -39,10 +39,17 @@ class ConstraintBodyHeatSource(base_fempythonobject.BaseFemPythonObject):
|
|||||||
|
|
||||||
def __init__(self, obj):
|
def __init__(self, obj):
|
||||||
super(ConstraintBodyHeatSource, self).__init__(obj)
|
super(ConstraintBodyHeatSource, self).__init__(obj)
|
||||||
|
self.add_properties(obj)
|
||||||
|
|
||||||
obj.addProperty(
|
def onDocumentRestored(self, obj):
|
||||||
"App::PropertyFloat",
|
self.add_properties(obj)
|
||||||
"HeatSource",
|
|
||||||
"Base",
|
def add_properties(self, obj):
|
||||||
"Body heat source"
|
if not hasattr(obj, "HeatSource"):
|
||||||
)
|
obj.addProperty(
|
||||||
|
"App::PropertyFloat",
|
||||||
|
"HeatSource",
|
||||||
|
"Base",
|
||||||
|
"Body heat source"
|
||||||
|
)
|
||||||
|
obj.HeatSource = 0.0
|
||||||
|
|||||||
Reference in New Issue
Block a user