Skip to content

Commit

Permalink
Merge pull request #1646 from zenustech/fix-transform-gizmo-bug
Browse files Browse the repository at this point in the history
fix-transform-gizmo-bug
  • Loading branch information
zhxx1987 authored Dec 18, 2023
2 parents 0583e8f + a777735 commit 7853f50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/zenoedit/viewport/cameracontrol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ void CameraControl::fakeMousePressEvent(QMouseEvent *event)
auto dir = screenToWorldRay(event->x() / res().x(), event->y() / res().y());
if (m_transformer)
{
if (!scene->selected.empty() && m_transformer->isTransformMode() &&
if (event->buttons() & Qt::LeftButton && !scene->selected.empty() && m_transformer->isTransformMode() &&
m_transformer->clickedAnyHandler(realPos(), dir, front))
{
bTransform = true;
Expand Down

0 comments on commit 7853f50

Please sign in to comment.