Part: fix test failure and add setBounds for backward compatibility
This commit is contained in:
@@ -1706,8 +1706,12 @@ PyObject* BSplineSurfacePy::scaleKnotsToBounds(PyObject *args)
|
||||
}
|
||||
}
|
||||
|
||||
PyObject *BSplineSurfacePy::getCustomAttributes(const char* /*attr*/) const
|
||||
PyObject *BSplineSurfacePy::getCustomAttributes(const char* attr) const
|
||||
{
|
||||
// for backward compatibility
|
||||
if (strcmp(attr, "setBounds") == 0) {
|
||||
return PyObject_GetAttrString(const_cast<BSplineSurfacePy*>(this), "scaleKnotsToBounds");
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user