Skip to content

Commit

Permalink
bugfix: get ptr to empty array using .data()
Browse files Browse the repository at this point in the history
  • Loading branch information
nmwsharp committed Oct 9, 2023
1 parent ee0de92 commit b48628a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/volume_grid_scalar_quantity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ SurfaceMesh* VolumeGridNodeScalarQuantity::registerIsosurfaceAsMesh(std::string
}

return registerSurfaceMesh(structureName, isosurfaceMesh.vertices,
std::make_tuple(&isosurfaceMesh.indices[0], isosurfaceMesh.indices.size(), 3));
std::make_tuple(isosurfaceMesh.indices.data(), isosurfaceMesh.indices.size(), 3));
}

void VolumeGridNodeScalarQuantity::buildNodeInfoGUI(size_t ind) {
Expand Down

0 comments on commit b48628a

Please sign in to comment.