PVS: V728 An excessive check can be simplified
This commit is contained in:
@@ -86,7 +86,7 @@ void ConstraintPulley::onChanged(const App::Property* prop)
|
||||
if (neg)
|
||||
force *= -1.0;
|
||||
|
||||
if ((IsDriven.getValue() && neg) || (!IsDriven.getValue() && !neg)) {
|
||||
if (IsDriven.getValue() == neg) {
|
||||
BeltForce1.setValue(force + TensionForce.getValue());
|
||||
BeltForce2.setValue(TensionForce.getValue());
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user