+ allow that an object cannot be set to edit mode
This commit is contained in:
parent
337a36ceb8
commit
9257e9471f
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user