mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 21:33:00 +02:00
Update 'f' focus to only work when something is selected
This commit is contained in:
parent
1ea25db237
commit
b8737ad525
1 changed files with 5 additions and 3 deletions
|
@ -839,9 +839,11 @@ Controller.keyReleaseEvent.connect(function (event) {
|
|||
selectionDisplay.toggleSpaceMode();
|
||||
} else if (event.text == "f") {
|
||||
if (isActive) {
|
||||
cameraManager.focus(selectionManager.worldPosition,
|
||||
selectionManager.worldDimensions,
|
||||
Menu.isOptionChecked(MENU_EASE_ON_FOCUS));
|
||||
if (selectionManager.hasSelection()) {
|
||||
cameraManager.focus(selectionManager.worldPosition,
|
||||
selectionManager.worldDimensions,
|
||||
Menu.isOptionChecked(MENU_EASE_ON_FOCUS));
|
||||
}
|
||||
}
|
||||
} else if (event.text == '[') {
|
||||
if (isActive) {
|
||||
|
|
Loading…
Reference in a new issue