Skip to content
Snippets Groups Projects
Commit 60d5baef authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

remove 3D view along with sample

parent 3affdb3d
No related branches found
No related tags found
1 merge request!1086Remove sample view when removing sample
Pipeline #76982 passed
......@@ -116,8 +116,10 @@ void SampleView::updateSingleSampleMode()
void SampleView::onRequestViewInRealspace(Item3D* item)
{
if (!item)
if (!item) {
m_realspacePanel->widget()->clearDisplay();
return;
}
m_docks->setDockVisible(REALSPACEPANEL);
m_realspacePanel->widget()->setDisplayedItem(m_sampleSelectionView->currentSample(), item);
......
......@@ -35,6 +35,7 @@ public:
~RealspaceWidget() override;
void setDisplayedItem(MultiLayerItem* containingMultiLayerItem, Item3D* item);
void clearDisplay() { setDisplayedItem(nullptr, nullptr); }
void defaultView();
void sideView();
void topView();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment