Fix test cases by adopting to new behavior
Pad now does not have a Sketch property anymore but a profile property. Also due to changes in PropertyLinkSubList it ispossible that PropertyLinks get an empty list assigned, this must be supportet now.
This commit is contained in:
@@ -249,7 +249,9 @@ void PropertyLinkSub::setPyObject(PyObject *value)
|
||||
}
|
||||
else if (PyTuple_Check(value) || PyList_Check(value)) {
|
||||
Py::Sequence seq(value);
|
||||
if (PyObject_TypeCheck(seq[0].ptr(), &(DocumentObjectPy::Type))){
|
||||
if(seq.size() == 0)
|
||||
setValue(NULL);
|
||||
else if (PyObject_TypeCheck(seq[0].ptr(), &(DocumentObjectPy::Type))){
|
||||
DocumentObjectPy *pcObj = (DocumentObjectPy*)seq[0].ptr();
|
||||
if (seq[1].isString()) {
|
||||
std::vector<std::string> vals;
|
||||
|
||||
Reference in New Issue
Block a user