felixmariotto/art-salad

Bug when model is gripped while exiting a puzzle

Closed this issue · 1 comments

So when a puzzle is exited, PuzzleManager is told to clear everything. But if the model is gripped, it is in the controller space, not a child of puzzleManager.group. So controls should have something like that :

events.on( 'exit-puzzle-request', e => {

	controllers.forEach( c => /* remove gripped parts */ )

} );