diff --git a/GUI/View/SampleDesigner/ParticleLayoutForm.cpp b/GUI/View/SampleDesigner/ParticleLayoutForm.cpp index 8211e76fdef0d4893d7f716754ac6701868c843e..ea221874c6c7169c9d6a99702cd417d1dc0a84ba 100644 --- a/GUI/View/SampleDesigner/ParticleLayoutForm.cpp +++ b/GUI/View/SampleDesigner/ParticleLayoutForm.cpp @@ -48,7 +48,11 @@ ParticleLayoutForm::ParticleLayoutForm(LayerForm* parent, ParticleLayoutItem* la m_removeAction = ActionFactory::createRemoveAction( this, "particle layout", [=] { ec->removeLayout(parent, layoutItem); }); + auto* showInRealSpaceAction = ActionFactory::createShowInRealSpaceAction( + this, "particle layout", [=] { ec->requestViewInRealSpace(layoutItem); }); + auto* collapser = GroupBoxCollapser::installIntoGroupBox(this); + collapser->addAction(showInRealSpaceAction); collapser->addAction(m_removeAction); m_layout = layouter.layout(); }