mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 04:14:07 +02:00
fix an uninitialized action ray when hitting spacebar
This commit is contained in:
parent
99219a1758
commit
957705998f
1 changed files with 2 additions and 3 deletions
|
@ -1117,9 +1117,8 @@ void Application::keyPressEvent(QKeyEvent* event) {
|
|||
case Qt::Key_Space: {
|
||||
if (!event->isAutoRepeat()) {
|
||||
// this starts an HFActionEvent
|
||||
PickRay actionRay;
|
||||
|
||||
HFActionEvent startActionEvent(HFActionEvent::startType(), actionRay);
|
||||
HFActionEvent startActionEvent(HFActionEvent::startType(),
|
||||
Application::getInstance()->getCamera()->getPickRay());
|
||||
sendEvent(this, &startActionEvent);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue