mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 14:31:50 +00:00
fix camera fov reset after load
This commit is contained in:
parent
462484130d
commit
63ddfd83a3
1 changed files with 1 additions and 0 deletions
|
|
@ -168,6 +168,7 @@ void CameraControl::update(const PlayerInput& input, float delta, Chunks* chunks
|
||||||
tpCamera->dir = camera->dir;
|
tpCamera->dir = camera->dir;
|
||||||
tpCamera->front = camera->front;
|
tpCamera->front = camera->front;
|
||||||
}
|
}
|
||||||
|
player->currentCamera->setFov(glm::radians(settings.fov.get()));
|
||||||
}
|
}
|
||||||
|
|
||||||
PlayerController::PlayerController(
|
PlayerController::PlayerController(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue