benchmark_opencascade: fix crash
This commit is contained in:
parent
0f4fe791b4
commit
1b54c12c98
@ -58,8 +58,8 @@ Handle_StlMesh_Mesh stlMesh;
|
|||||||
|
|
||||||
static void stl_read(const void* filepath)
|
static void stl_read(const void* filepath)
|
||||||
{
|
{
|
||||||
gmio_stl_mesh_creator mesh_creator = gmio_stl_occmesh_creator(stlMesh);
|
|
||||||
stlMesh = new StlMesh_Mesh;
|
stlMesh = new StlMesh_Mesh;
|
||||||
|
gmio_stl_mesh_creator mesh_creator = gmio_stl_occmesh_creator(stlMesh);
|
||||||
const int error = gmio_stl_read_file(
|
const int error = gmio_stl_read_file(
|
||||||
static_cast<const char*>(filepath), &mesh_creator, NULL);
|
static_cast<const char*>(filepath), &mesh_creator, NULL);
|
||||||
if (error != GMIO_ERROR_OK)
|
if (error != GMIO_ERROR_OK)
|
||||||
|
Loading…
Reference in New Issue
Block a user