mirror of
https://github.com/overte-org/overte.git
synced 2025-04-13 22:09:06 +02:00
only focus with selection
This commit is contained in:
parent
dcf2074d7e
commit
0e53fa3f8b
1 changed files with 4 additions and 2 deletions
|
@ -1892,8 +1892,10 @@ function toggleKey(value) {
|
|||
function focusKey(value) {
|
||||
if (value === 0) { // on release
|
||||
cameraManager.enable();
|
||||
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));
|
||||
}
|
||||
}
|
||||
}
|
||||
function gridKey(value) {
|
||||
|
|
Loading…
Reference in a new issue