Skip to content
Snippets Groups Projects
Commit ab8e4d79 authored by Mikhail Svechnikov's avatar Mikhail Svechnikov
Browse files

set default materials for core and shell

parent 07a82edf
No related branches found
No related tags found
1 merge request!1346GUI: use different materials for particles and layers by default
......@@ -157,7 +157,7 @@ ParticleItem* CoreAndShellItem::coreItem() const
ParticleItem* CoreAndShellItem::createCoreItem(const MaterialModel* materials)
{
m_core.reset(new ParticleItem(materials));
m_core->setMaterial(materials->defaultMaterialItem());
m_core->setMaterial(materials->defaultCoreMaterialItem());
return m_core.get();
}
......@@ -169,7 +169,7 @@ ParticleItem* CoreAndShellItem::shellItem() const
ParticleItem* CoreAndShellItem::createShellItem(const MaterialModel* materials)
{
m_shell.reset(new ParticleItem(materials));
m_shell->setMaterial(materials->defaultMaterialItem());
m_shell->setMaterial(materials->defaultParticleMaterialItem());
// position is not used for shell item
m_shell->setPosition({});
......
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