viewer: unset gizmos on disconnect

Fixes potential crash
This commit is contained in:
itsmattkc
2022-04-09 16:37:24 -07:00
parent 1448f641e5
commit 1895497bed
+2
View File
@@ -256,6 +256,8 @@ void ViewerWidget::DisconnectNodeEvent(ViewerOutput *n)
// Queue an UpdateStack so that when it runs, the viewer node will be fully disconnected
QMetaObject::invokeMethod(this, &ViewerWidget::UpdateStack, Qt::QueuedConnection);
SetGizmos(nullptr);
}
void ViewerWidget::ConnectedNodeChangeEvent(ViewerOutput *n)