[FEM] remove superfluous nullptr checks
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user