Skip to content

Commit

Permalink
revert: fix: immediate should not run if no time passed
Browse files Browse the repository at this point in the history
  • Loading branch information
littensy committed Jan 3, 2025
1 parent 62684ef commit e1b4575
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
6 changes: 2 additions & 4 deletions src/solvers/immediate.luau
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@ local function immediate(motionGoal: types.MotionGoal): types.MotionSolver
return false
end

if deltaTime > 0 then
state.value = goal
state.complete = true
end
state.value = goal
state.complete = true
end
end

Expand Down
3 changes: 0 additions & 3 deletions src/solvers/immediate.spec.luau
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,6 @@ return function()
end)

motion:immediate(0)

expect(motion:isComplete()).to.equal(false)

motion:step(1)

expect(motion:isComplete()).to.equal(true)
Expand Down

0 comments on commit e1b4575

Please sign in to comment.