[FEM] remove superfluous nullptr checks

This commit is contained in:
Uwe
2022-07-18 01:45:19 +02:00
parent 5f8e0c46ee
commit fc548a4b34
23 changed files with 30 additions and 30 deletions

View File

@@ -99,7 +99,7 @@ void ConstraintForce::onChanged(const App::Property* prop)
}
} else if (prop == &NormalDirection) {
// Set a default direction if no direction reference has been given
if (Direction.getValue() == nullptr) {
if (!Direction.getValue()) {
Base::Vector3d direction = NormalDirection.getValue();
if (Reversed.getValue())
direction = -direction;