+ implement PropertyMaterialListItem

This commit is contained in:
wmayer
2016-05-08 19:28:02 +02:00
parent b80df1db40
commit 61aa0fcafe
3 changed files with 241 additions and 82 deletions

View File

@@ -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);
}
}
@@ -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