mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 11:48:09 +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) {
|
function focusKey(value) {
|
||||||
if (value === 0) { // on release
|
if (value === 0) { // on release
|
||||||
cameraManager.enable();
|
cameraManager.enable();
|
||||||
cameraManager.focus(selectionManager.worldPosition, selectionManager.worldDimensions,
|
if (selectionManager.hasSelection()) {
|
||||||
Menu.isOptionChecked(MENU_EASE_ON_FOCUS));
|
cameraManager.focus(selectionManager.worldPosition, selectionManager.worldDimensions,
|
||||||
|
Menu.isOptionChecked(MENU_EASE_ON_FOCUS));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function gridKey(value) {
|
function gridKey(value) {
|
||||||
|
|
Loading…
Reference in a new issue