[Image] [Inspection] remove superfluous nullptr checks

This commit is contained in:
Uwe
2022-07-18 01:54:09 +02:00
parent ce86b03e0a
commit 1f04880da9
4 changed files with 9 additions and 9 deletions

View File

@@ -479,7 +479,7 @@ void ViewProviderInspection::inspectCallback(void * ud, SoEventCallback * n)
}
else if (mbe->getButton() == SoMouseButtonEvent::BUTTON1 && mbe->getState() == SoButtonEvent::UP) {
const SoPickedPoint * point = n->getPickedPoint();
if (point == nullptr) {
if (!point) {
Base::Console().Message("No point picked.\n");
return;
}