Skip to content

Commit

Permalink
fuck qt
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouhang95 committed Sep 28, 2023
1 parent 45826f8 commit b9fa237
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/zenoedit/viewport/cameracontrol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ void CameraControl::fakeMousePressEvent(QMouseEvent *event)
{
ZASSERT_EXIT(m_zenovis);
auto scene = m_zenovis->getSession()->get_scene();
if (event->buttons() == Qt::MiddleButton) {
if (event->button() == Qt::MiddleButton) {
middle_button_pressed = true;
}
if (scene->camera->m_need_sync) {
Expand Down Expand Up @@ -483,7 +483,7 @@ QVariant CameraControl::hitOnFloor(float x, float y) const {
}

void CameraControl::fakeMouseReleaseEvent(QMouseEvent *event) {
if (event->buttons() == Qt::MiddleButton) {
if (event->button() == Qt::MiddleButton) {
middle_button_pressed = false;
}
if (event->button() == Qt::LeftButton) {
Expand Down

0 comments on commit b9fa237

Please sign in to comment.