only focus with selection

This commit is contained in:
David Back 2018-08-29 12:05:46 -07:00
parent dcf2074d7e
commit 0e53fa3f8b

View file

@ -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) {