diff --git a/Applications/Utils/MeshEdit/queryMesh.cpp b/Applications/Utils/MeshEdit/queryMesh.cpp index f40fcf3ca501bfd8838688b59baf925806ecb71f..44bd0156e2a282ca49a1ccf351fb0eca109f93f3 100644 --- a/Applications/Utils/MeshEdit/queryMesh.cpp +++ b/Applications/Utils/MeshEdit/queryMesh.cpp @@ -68,9 +68,11 @@ int main(int argc, char *argv[]) } selected_node_ids.insert(selected_node_ids.end(), nodeId_arg.getValue().begin(), nodeId_arg.getValue().end()); - MeshLib::PropertyVector<int> const*const materialIds = - mesh->getProperties().existsPropertyVector<int>("MaterialIDs") - ? mesh->getProperties().getPropertyVector<int>("MaterialIDs") + MeshLib::PropertyVector<int> const* const materialIds = + mesh->getProperties().existsPropertyVector<int>( + "MaterialIDs", MeshLib::MeshItemType::Cell, 1) + ? mesh->getProperties().getPropertyVector<int>( + "MaterialIDs", MeshLib::MeshItemType::Cell, 1) : nullptr; for (auto ele_id : eleId_arg.getValue()) {