mirror of
https://github.com/overte-org/overte.git
synced 2025-04-24 12:13:36 +02:00
Disable editentities auto-off when moving avatar
This commit is contained in:
parent
347c74ebae
commit
e1ca6d5048
1 changed files with 2 additions and 3 deletions
|
@ -820,9 +820,8 @@ function handeMenuEvent(menuItem) {
|
|||
Menu.menuItemEvent.connect(handeMenuEvent);
|
||||
|
||||
Controller.keyPressEvent.connect(function(event) {
|
||||
if (event.text == 'w' || event.text == 'a' || event.text == 's' || event.text == 'd'
|
||||
|| event.text == 'UP' || event.text == 'DOWN' || event.text == 'LEFT' || event.text == 'RIGHT') {
|
||||
toolBar.setActive(false);
|
||||
if (isActive) {
|
||||
cameraManager.keyPressEvent(event);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue