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

use curr doc instead of global access to material model

parent b7ba9971
No related branches found
No related tags found
1 merge request!489Material refactoring
Pipeline #50649 passed
...@@ -41,7 +41,7 @@ MaterialInplaceForm::MaterialInplaceForm(QWidget* parent, ItemWithMaterial* item ...@@ -41,7 +41,7 @@ MaterialInplaceForm::MaterialInplaceForm(QWidget* parent, ItemWithMaterial* item
m_layout->setContentsMargins(0, 0, 0, 0); m_layout->setContentsMargins(0, 0, 0, 0);
createWidgets(); createWidgets();
connect(GUI::Model::MaterialModelStore::materialModel(), &MaterialModel::materialChanged, this, connect(gSessionData->projectDocument->materialModel(), &MaterialModel::materialChanged, this,
&MaterialInplaceForm::onMaterialChanged); &MaterialInplaceForm::onMaterialChanged);
} }
......
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