Gui: Use assignment to auto in if statement
Co-authored-by: Kacper Donat <kadet1090@gmail.com>
This commit is contained in:
@@ -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()))) {
|
||||
|
||||
Reference in New Issue
Block a user