fix bug tracker issue id:0003450 : Freecad crash when simulating without operations.

This commit is contained in:
Shai Seger
2018-05-04 00:59:16 +03:00
parent 7fa81fd2e6
commit 8d4f31f021
2 changed files with 13 additions and 3 deletions

View File

@@ -85,6 +85,8 @@ PyObject* PathSimPy::GetResultMesh(PyObject * args)
if (!PyArg_ParseTuple(args, ""))
return 0;
cStock *stock = getPathSimPtr()->m_stock;
if (stock == NULL)
return 0;
Mesh::MeshObject *meshOuter = new Mesh::MeshObject();
Mesh::MeshPy *meshOuterpy = new Mesh::MeshPy(meshOuter);