Gui: Add nullptr check in showRotationCenter
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user