+ Support to write out mesh name

This commit is contained in:
wmayer
2013-12-22 15:02:40 +01:00
parent 970f9c193d
commit 58b1a0947f
6 changed files with 21 additions and 8 deletions

View File

@@ -149,7 +149,8 @@ PyObject* MeshPy::write(PyObject *args)
{
const char* Name;
char* Ext=0;
if (!PyArg_ParseTuple(args, "s|s",&Name,&Ext))
char* ObjName;
if (!PyArg_ParseTuple(args, "s|ss",&Name,&Ext,&ObjName))
return NULL;
MeshCore::MeshIO::Format format = MeshCore::MeshIO::Undefined;
@@ -175,7 +176,7 @@ PyObject* MeshPy::write(PyObject *args)
};
PY_TRY {
getMeshObjectPtr()->save(Name, format);
getMeshObjectPtr()->save(Name, format, 0, ObjName);
} PY_CATCH;
Py_Return;