Skip to content

Commit

Permalink
+ implement PropertyMaterialListItem
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed May 8, 2016
1 parent e2d780a commit f5b707e
Show file tree
Hide file tree
Showing 3 changed files with 241 additions and 82 deletions.
5 changes: 3 additions & 2 deletions src/App/PropertyStandard.cpp
Expand Up @@ -2604,7 +2604,8 @@ void PropertyMaterialList::setPyObject(PyObject *value)

for (Py::Sequence::iterator it = list.begin(); it != list.end(); ++it) {
if (PyObject_TypeCheck((*it).ptr(), &(MaterialPy::Type))) {
materials.push_back(*static_cast<MaterialPy*>(value)->getMaterialPtr());
Material mat = *static_cast<MaterialPy*>((*it).ptr())->getMaterialPtr();
materials.push_back(mat);
}
}

Expand Down Expand Up @@ -2679,7 +2680,7 @@ void PropertyMaterialList::RestoreDocFile(Base::Reader &reader)

const char* PropertyMaterialList::getEditorName(void) const
{
return "";// "Gui::PropertyEditor::PropertyMaterialListItem";
return "Gui::PropertyEditor::PropertyMaterialListItem";
}

Property *PropertyMaterialList::Copy(void) const
Expand Down
1 change: 1 addition & 0 deletions src/Gui/SoFCDB.cpp
Expand Up @@ -139,6 +139,7 @@ void Gui::SoFCDB::init()
PropertyIntegerListItem ::init();
PropertyColorItem ::init();
PropertyMaterialItem ::init();
PropertyMaterialListItem ::init();
PropertyFileItem ::init();
PropertyPathItem ::init();
PropertyTransientFileItem ::init();
Expand Down

0 comments on commit f5b707e

Please sign in to comment.