Skip to content

Commit

Permalink
Fix fling input handler render
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveBarnegren committed Jun 29, 2020
1 parent bd35675 commit 400f06e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion PhysicsDemo/Input Handlers/InputHandlerFlingBall.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ class InputHandlerFlingBall: InputHandler, BallPlacementInputHandler {
}

override func objectsToRender(context: InputHandlerContext) -> [DrawCommand] {

guard let fling = fling else {
return []
}
Expand Down
4 changes: 4 additions & 0 deletions PhysicsDemo/Input Handlers/InputHandlerSwitch.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,8 @@ class InputHandlerSwitch: InputHandler {
override func mouseUp(at position: InputPosition, context: InputHandlerContext) {
currentHandler.mouseUp(at: position, context: context)
}

override func objectsToRender(context: InputHandlerContext) -> [DrawCommand] {
return currentHandler.objectsToRender(context: context)
}
}

0 comments on commit 400f06e

Please sign in to comment.