set default value of thrid parameter to None in SeletionGatePython

This commit is contained in:
wmayer
2017-09-18 12:37:41 +02:00
parent eb87a20f8b
commit 20b08561ad

View File

@@ -91,9 +91,9 @@ bool SelectionGatePython::allow(App::Document* doc, App::DocumentObject* obj, co
Py::Callable method(this->gate.getAttr(std::string("allow")));
Py::Object pyDoc = Py::asObject(doc->getPyObject());
Py::Object pyObj = Py::asObject(obj->getPyObject());
Py::String pySub;
Py::Object pySub = Py::None();
if (sub)
pySub = std::string(sub);
pySub = Py::String(sub);
Py::Tuple args(3);
args.setItem(0, pyDoc);
args.setItem(1, pyObj);