+ allow that an object cannot be set to edit mode

This commit is contained in:
wmayer 2015-10-18 16:09:25 +02:00
parent 337a36ceb8
commit 9257e9471f

View File

@ -111,12 +111,7 @@ PyObject* DocumentPy::setEdit(PyObject *args)
}
bool ok = getDocumentPtr()->setEdit(getDocumentPtr()->getViewProvider(obj),mod);
if (!ok) {
PyErr_Format(Base::BaseExceptionFreeCADError, "Failed to set object '%s' in edit mode", psFeatStr);
return 0;
}
Py_Return;
return PyBool_FromLong(ok ? 1 : 0);
}
PyObject* DocumentPy::getInEdit(PyObject *args)