Fem: Call base class handleChangedProperyType function

This commit is contained in:
marioalexis
2024-01-20 12:03:46 -03:00
committed by Chris Hennes
parent 04bc6f8006
commit 336bf03ada
7 changed files with 21 additions and 0 deletions

View File

@@ -141,6 +141,9 @@ void ConstraintDisplacement::handleChangedPropertyType(Base::XMLReader& reader,
zRotationProperty.Restore(reader);
zRotation.setValue(zRotationProperty.getValue());
}
else {
Constraint::handleChangedPropertyType(reader, TypeName, prop);
}
}
void ConstraintDisplacement::onChanged(const App::Property* prop)

View File

@@ -80,6 +80,9 @@ void ConstraintForce::handleChangedPropertyType(Base::XMLReader& reader,
// e.g. "2.5" must become 2500 to result in 2.5 N
Force.setValue(ForceProperty.getValue() * 1000);
}
else {
Constraint::handleChangedPropertyType(reader, TypeName, prop);
}
}
void ConstraintForce::onChanged(const App::Property* prop)

View File

@@ -74,6 +74,9 @@ void ConstraintInitialTemperature::handleChangedPropertyType(Base::XMLReader& re
initialTemperatureProperty.Restore(reader);
initialTemperature.setValue(initialTemperatureProperty.getValue());
}
else {
Constraint::handleChangedPropertyType(reader, TypeName, prop);
}
}
void ConstraintInitialTemperature::onChanged(const App::Property* prop)

View File

@@ -71,6 +71,9 @@ void ConstraintPressure::handleChangedPropertyType(Base::XMLReader& reader,
// therefore we must convert the value with a factor 1000
Pressure.setValue(PressureProperty.getValue() * 1000.0);
}
else {
Constraint::handleChangedPropertyType(reader, TypeName, prop);
}
}
void ConstraintPressure::onChanged(const App::Property* prop)

View File

@@ -86,6 +86,9 @@ void ConstraintTemperature::handleChangedPropertyType(Base::XMLReader& reader,
CFluxProperty.Restore(reader);
CFlux.setValue(CFluxProperty.getValue());
}
else {
Constraint::handleChangedPropertyType(reader, TypeName, prop);
}
}
void ConstraintTemperature::onChanged(const App::Property* prop)

View File

@@ -110,6 +110,9 @@ void ConstraintTransform::handleChangedPropertyType(Base::XMLReader& reader,
Z_rotProperty.Restore(reader);
Z_rot.setValue(Z_rotProperty.getValue());
}
else {
Constraint::handleChangedPropertyType(reader, TypeName, prop);
}
}
void ConstraintTransform::onChanged(const App::Property* prop)

View File

@@ -217,6 +217,9 @@ void FemPostDataAlongLineFilter::handleChangedPropertyType(Base::XMLReader& read
Point2Property.Restore(reader);
Point2.setValue(Point2Property.getValue());
}
else {
FemPostFilter::handleChangedPropertyType(reader, TypeName, prop);
}
}
void FemPostDataAlongLineFilter::onChanged(const Property* prop)