[App]convenience getter for PropertyXLinkList

This commit is contained in:
wandererfan
2020-04-10 17:31:28 -04:00
committed by WandererFan
parent 0ea99fd22e
commit 49177d0416
2 changed files with 11 additions and 0 deletions

View File

@@ -4337,6 +4337,14 @@ void PropertyXLinkList::setPyObject(PyObject *value)
PropertyXLinkSubList::setPyObject(value);
}
//for consistency with PropertyLinkList
const std::vector<App::DocumentObject*> PropertyXLinkList::getValues(void) const
{
std::vector<DocumentObject*> xLinks;
getLinks(xLinks);
return(xLinks);
}
//**************************************************************************
// PropertyXLinkContainer
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++