

nice, that's a clever use of toggle_game_pause()
you probably don't want to rewind replay in skipReplay() while in edit mode though, current way both skips any pending joint state input and prevents physics engine from generating dismember/fracture events if they were supposed to happen after the frame you're at
doesn't seem like shift + N works in edit mode either, should be an easy fix