Skip to content

Commit

Permalink
+ allow that an object cannot be set to edit mode
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Oct 18, 2015
1 parent 337a36c commit 9257e94
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/Gui/DocumentPyImp.cpp
Expand Up @@ -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)
Expand Down

0 comments on commit 9257e94

Please sign in to comment.