Fix missing update of octree in headless mode, so that graphics raycasts work properly and animations are updated.