409e0a5c82
Move calls to exit editmode and posemode to "set_scene()". Was causing errors when, in posemode, switching to empty scene.