mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
disable mouse camera control if non-standard camera used
This commit is contained in:
parent
751489b003
commit
9e817c39ce
4 changed files with 15 additions and 5 deletions
|
|
@ -207,8 +207,7 @@ void CameraControl::update(
|
|||
tpCamera->front = camera->front;
|
||||
tpCamera->right = camera->right;
|
||||
}
|
||||
if (player.currentCamera == spCamera || player.currentCamera == tpCamera ||
|
||||
player.currentCamera == camera) {
|
||||
if (player.isCurrentCameraBuiltin()) {
|
||||
player.currentCamera->setFov(glm::radians(settings.fov.get()));
|
||||
}
|
||||
}
|
||||
|
|
@ -280,7 +279,7 @@ void PlayerController::postUpdate(
|
|||
updateFootsteps(delta);
|
||||
}
|
||||
|
||||
if (!pause && input) {
|
||||
if (!pause && input && player.isCurrentCameraBuiltin()) {
|
||||
camControl.updateMouse(this->input, windowHeight);
|
||||
}
|
||||
camControl.refreshRotation();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue