mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 04:57:58 +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();
|
selectionDisplay.toggleSpaceMode();
|
||||||
} else if (event.text == "f") {
|
} else if (event.text == "f") {
|
||||||
if (isActive) {
|
if (isActive) {
|
||||||
cameraManager.focus(selectionManager.worldPosition,
|
if (selectionManager.hasSelection()) {
|
||||||
selectionManager.worldDimensions,
|
cameraManager.focus(selectionManager.worldPosition,
|
||||||
Menu.isOptionChecked(MENU_EASE_ON_FOCUS));
|
selectionManager.worldDimensions,
|
||||||
|
Menu.isOptionChecked(MENU_EASE_ON_FOCUS));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else if (event.text == '[') {
|
} else if (event.text == '[') {
|
||||||
if (isActive) {
|
if (isActive) {
|
||||||
|
|
Loading…
Reference in a new issue