Gui: Use assignment to auto in if statement

Co-authored-by: Kacper Donat <kadet1090@gmail.com>
This commit is contained in:
tetektoza
2025-10-20 20:21:02 +02:00
committed by GitHub
parent 2e4fc31dba
commit 5242020eca

View File

@@ -186,8 +186,7 @@ private:
return false;
}
auto* navStyle = viewer->navigationStyle();
if (navStyle) {
if (auto* navStyle = viewer->navigationStyle()) {
// reject if navigation style requires ctrl and it's not pressed or we're under a dragger
if ((navStyle->clarifySelectionMode() == NavigationStyle::ClarifySelectionMode::Ctrl && !ctrlPressed) ||
navStyle->isDraggerUnderCursor(SbVec2s(pos.x(), pos.y()))) {