]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/simple-spacer-scheme.cc
Merge branch 'master' into jneeman
[lilypond.git] / lily / simple-spacer-scheme.cc
index fda38ab503bb41de7039116a15448f34b8a38525..48f127bfca5ae710b5778c73b343e6d08e994839 100644 (file)
@@ -44,7 +44,11 @@ LY_DEFINE (ly_solve_spring_rod_problem, "ly:solve-spring-rod-problem",
       Real ideal = scm_to_double (scm_caar (s));
       Real inv_hooke = scm_to_double (scm_cadar (s));
 
-      spacer.add_spring (ideal, inv_hooke);
+      Spring sp (ideal, 0.0);
+      sp.set_inverse_compress_strength (inv_hooke);
+      sp.set_inverse_stretch_strength (inv_hooke);
+
+      spacer.add_spring (sp);
     }
 
   for (SCM s = rods; scm_is_pair (s); s = scm_cdr (s))