Browse Source

MeshTools: clarify confusing comment.

pull/623/head
Vladimír Vondruš 3 years ago
parent
commit
eb83dd5a8f
  1. 4
      src/Magnum/MeshTools/Concatenate.cpp

4
src/Magnum/MeshTools/Concatenate.cpp

@ -160,8 +160,8 @@ Trade::MeshData concatenate(Containers::Array<char>&& indexData, const UnsignedI
/* No corresponding attribute found, continue */ /* No corresponding attribute found, continue */
if(dst == ~UnsignedInt{}) continue; if(dst == ~UnsignedInt{}) continue;
/* Check format compatibility. This won't fire for i == /* Check format compatibility. This won't fire for i == 0, as
~std::size_t{}, as that's where out.primitive() comes from */ that's where out.primitive() comes from */
CORRADE_ASSERT(out.attributeFormat(dst) == mesh.attributeFormat(src), CORRADE_ASSERT(out.attributeFormat(dst) == mesh.attributeFormat(src),
assertPrefix << "expected" << out.attributeFormat(dst) << "for attribute" << dst << "(" << Debug::nospace << out.attributeName(dst) << Debug::nospace << ") but got" << mesh.attributeFormat(src) << "in mesh" << i << "attribute" << src, assertPrefix << "expected" << out.attributeFormat(dst) << "for attribute" << dst << "(" << Debug::nospace << out.attributeName(dst) << Debug::nospace << ") but got" << mesh.attributeFormat(src) << "in mesh" << i << "attribute" << src,
(Trade::MeshData{MeshPrimitive{}, 0})); (Trade::MeshData{MeshPrimitive{}, 0}));

Loading…
Cancel
Save