Skip to content
Permalink
Browse files

Increase max values for curve generators

  • Loading branch information...
Koen Bok
Koen Bok committed Mar 13, 2013
1 parent 67f1220 commit e2e55460b476d90a32d57342d96152a195eb39c1
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/curves/bezier.coffee
  2. +1 −1 src/curves/spring.coffee
@@ -68,7 +68,7 @@ BezierCurve = (a, b, c, d, time, fps) ->
values = []
steps = (time / 1000) * fps

if steps > 1000
if steps > 3000
throw Error "Bezier: too many values"

for step in [0..steps]
@@ -107,7 +107,7 @@ class Spring
@reset()
count = 0
while @moving
if count > 1000
if count > 3000
throw Error "Spring: too many values"
count++
@next()

0 comments on commit e2e5546

Please sign in to comment.
You can’t perform that action at this time.