py3: ported MeshPart to python3
This commit is contained in:
@@ -67,14 +67,14 @@ PyObject* initModule()
|
||||
|
||||
|
||||
/* Python entry */
|
||||
PyMODINIT_FUNC initMeshPartGui()
|
||||
PyMOD_INIT_FUNC(MeshPartGui)
|
||||
{
|
||||
if (!Gui::Application::Instance) {
|
||||
PyErr_SetString(PyExc_ImportError, "Cannot load Gui module in console application.");
|
||||
return;
|
||||
PyMOD_Return(0);
|
||||
}
|
||||
|
||||
(void)MeshPartGui::initModule();
|
||||
PyObject* mod = MeshPartGui::initModule();
|
||||
Base::Console().Log("Loading GUI of MeshPart module... done\n");
|
||||
|
||||
// instantiating the commands
|
||||
@@ -83,4 +83,6 @@ PyMODINIT_FUNC initMeshPartGui()
|
||||
|
||||
// add resources and reloads the translators
|
||||
loadMeshPartResource();
|
||||
|
||||
PyMOD_Return(mod);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user