Gui: fix -Wlogical-op-parentheses

This commit is contained in:
wmayer
2024-03-05 11:08:19 +01:00
committed by Chris Hennes
parent b6c070aabf
commit 5f0ccced5b

View File

@@ -256,10 +256,13 @@ SbBool BlenderNavigationStyle::processSoEvent(const SoEvent * const ev)
case BUTTON1DOWN:
case CTRLDOWN|BUTTON1DOWN:
// make sure not to change the selection when stopping spinning
if (curmode == NavigationStyle::SPINNING || this->lockButton1 && curmode != NavigationStyle::SELECTION)
if (curmode == NavigationStyle::SPINNING
|| (this->lockButton1 && curmode != NavigationStyle::SELECTION)) {
newmode = NavigationStyle::IDLE;
else
}
else {
newmode = NavigationStyle::SELECTION;
}
break;
case BUTTON1DOWN|BUTTON2DOWN:
newmode = NavigationStyle::PANNING;