Skip to content
Snippets Groups Projects
Commit fb03014c authored by Matthias Puchner's avatar Matthias Puchner
Browse files

add btn to show a single particle layout in real space view

parent a611f82f
No related branches found
No related tags found
1 merge request!447Real space for layer editor
...@@ -48,7 +48,11 @@ ParticleLayoutForm::ParticleLayoutForm(LayerForm* parent, ParticleLayoutItem* la ...@@ -48,7 +48,11 @@ ParticleLayoutForm::ParticleLayoutForm(LayerForm* parent, ParticleLayoutItem* la
m_removeAction = ActionFactory::createRemoveAction( m_removeAction = ActionFactory::createRemoveAction(
this, "particle layout", [=] { ec->removeLayout(parent, layoutItem); }); this, "particle layout", [=] { ec->removeLayout(parent, layoutItem); });
auto* showInRealSpaceAction = ActionFactory::createShowInRealSpaceAction(
this, "particle layout", [=] { ec->requestViewInRealSpace(layoutItem); });
auto* collapser = GroupBoxCollapser::installIntoGroupBox(this); auto* collapser = GroupBoxCollapser::installIntoGroupBox(this);
collapser->addAction(showInRealSpaceAction);
collapser->addAction(m_removeAction); collapser->addAction(m_removeAction);
m_layout = layouter.layout(); m_layout = layouter.layout();
} }
......
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