Skip to content

Commit abd4524

Browse files
committed
- bugfix
1 parent 1cb0cd8 commit abd4524

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PositionBasedDynamics/PositionBasedElasticRods.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,7 @@ Real PBD::DirectPositionBasedSolverForStiffRods::factor(const int intervalIndex,
775775
// compute max error
776776
for (unsigned char i(0); i < 6; ++i)
777777
{
778-
maxError = std::max(maxError, abs(rhs[i]));
778+
maxError = std::max(maxError, std::abs(rhs[i]));
779779
}
780780

781781
// Compute a part of the Jacobian here, because the relationship

0 commit comments

Comments
 (0)