projects
/
lilypond.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1146e17
)
Revert "second patch from Joe: fix a silly mistake with infinite stiff springs"
author
Valentin Villenave
<valentin@villenave.net>
Mon, 14 Jan 2008 00:37:47 +0000
(
01:37
+0100)
committer
Valentin Villenave
<valentin@villenave.net>
Mon, 14 Jan 2008 00:37:47 +0000
(
01:37
+0100)
This reverts commit
c2b8039d1d227a1d20b7a9a3fb04d8df8e40de19
.
Signed-off-by: Valentin Villenave <v.villenave@gmail.com>
lily/simple-spacer.cc
patch
|
blob
|
history
diff --git
a/lily/simple-spacer.cc
b/lily/simple-spacer.cc
index 9129361cbd86702f3524bedec164a49aac27eee9..f16e6070610152750213562cca1cbbd4bd15b9f3 100644
(file)
--- a/
lily/simple-spacer.cc
+++ b/
lily/simple-spacer.cc
@@
-84,7
+84,7
@@
Simple_spacer::rod_force (int l, int r, Real dist)
Real c = range_stiffness (l, r, dist > d);
Real block_stretch = dist - d;
- if (isinf (c)
&& block_stretch == 0
) /* take care of the 0*infinity_f case */
+ if (isinf (c)) /* take care of the 0*infinity_f case */
return 0;
return c * block_stretch;
}