[App]convenience getter for PropertyXLinkList
This commit is contained in:
@@ -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
|
||||
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
|
||||
@@ -1309,6 +1309,9 @@ public:
|
||||
|
||||
virtual PyObject *getPyObject(void) override;
|
||||
virtual void setPyObject(PyObject *) override;
|
||||
|
||||
//for consistency with PropertyLinkList
|
||||
const std::vector<App::DocumentObject*> getValues(void) const;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user