fix bug tracker issue id:0003450 : Freecad crash when simulating without operations.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user