Gui: Add nullptr check in showRotationCenter

This commit is contained in:
Rexbas
2023-09-04 20:43:21 +02:00
committed by wwmayer
parent 880461593f
commit 7a9fa16762

View File

@@ -1298,6 +1298,10 @@ bool View3DInventorViewer::hasAxisCross()
void View3DInventorViewer::showRotationCenter(bool show)
{
SoNode* scene = getSceneGraph();
if (!scene) {
return;
}
auto sep = static_cast<SoSeparator*>(scene);
bool showEnabled = App::GetApplication()