Skip to content

Commit 8b6efa1

Browse files
committed
Fix: don't select light paths with Alt or Shift
This affects the area region selection tool.
1 parent f6f277b commit 8b6efa1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/appleseed.studio/mainwindow/rendering/viewportregionselectionhandler.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ bool ViewportRegionSelectionHandler::eventFilter(QObject* object, QEvent* event)
112112
{
113113
const QMouseEvent* mouse_event = static_cast<QMouseEvent*>(event);
114114

115-
if (mouse_event->button() == Qt::LeftButton)
115+
if (mouse_event->button() == Qt::LeftButton &&
116+
!(mouse_event->modifiers() & (Qt::AltModifier | Qt::ShiftModifier | Qt::ControlModifier)))
116117
{
117118
m_rubber_band->hide();
118119

0 commit comments

Comments
 (0)