mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 17:00:36 +02:00
fix isVoxelModeChecked comparisons
This commit is contained in:
parent
0e4d54d5b0
commit
f864b6436d
1 changed files with 3 additions and 3 deletions
|
@ -782,7 +782,7 @@ void Application::mouseMoveEvent(QMouseEvent* event) {
|
|||
if (event->buttons().testFlag(Qt::LeftButton)) {
|
||||
maybeEditVoxelUnderCursor();
|
||||
|
||||
} else if (event->buttons().testFlag(Qt::RightButton) && !Menu::getInstance()->isVoxelModeActionChecked()) {
|
||||
} else if (event->buttons().testFlag(Qt::RightButton) && Menu::getInstance()->isVoxelModeActionChecked()) {
|
||||
deleteVoxelUnderCursor();
|
||||
}
|
||||
}
|
||||
|
@ -830,7 +830,7 @@ void Application::mousePressEvent(QMouseEvent* event) {
|
|||
_isHoverVoxelSounding = true;
|
||||
}
|
||||
|
||||
} else if (event->button() == Qt::RightButton && !Menu::getInstance()->isVoxelModeActionChecked()) {
|
||||
} else if (event->button() == Qt::RightButton && Menu::getInstance()->isVoxelModeActionChecked()) {
|
||||
deleteVoxelUnderCursor();
|
||||
}
|
||||
}
|
||||
|
@ -889,7 +889,7 @@ const bool USE_MOUSEWHEEL = false;
|
|||
void Application::wheelEvent(QWheelEvent* event) {
|
||||
// Wheel Events disabled for now because they are also activated by touch look pitch up/down.
|
||||
if (USE_MOUSEWHEEL && (activeWindow() == _window)) {
|
||||
if (Menu::getInstance()->isVoxelModeActionChecked()) {
|
||||
if (!Menu::getInstance()->isVoxelModeActionChecked()) {
|
||||
event->ignore();
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue