From 2660f710cc9aba0299b46b64a046d6ae83876331 Mon Sep 17 00:00:00 2001 From: zhouhang95 <765229842@qq.com> Date: Tue, 17 Oct 2023 16:57:49 +0800 Subject: [PATCH] wasd-in-optix --- ui/zenoedit/viewport/optixviewport.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ui/zenoedit/viewport/optixviewport.cpp b/ui/zenoedit/viewport/optixviewport.cpp index fa6ba8d7d5..c0b3cad70e 100644 --- a/ui/zenoedit/viewport/optixviewport.cpp +++ b/ui/zenoedit/viewport/optixviewport.cpp @@ -590,6 +590,10 @@ void ZOptixViewport::keyPressEvent(QKeyEvent* event) if (modifiers & Qt::AltModifier) { uKey += Qt::ALT; } + if (m_camera->fakeKeyPressEvent(uKey)) { + zenoApp->getMainWindow()->updateViewport(); + return; + } /* if (uKey == key) this->changeTransformOperation(0);