Browse Source

Trade: accidentally didn't test MeshData::mutableAttribute<T[]>().

pull/582/merge
Vladimír Vondruš 4 years ago
parent
commit
a496029874
  1. 4
      src/Magnum/Trade/Test/MeshDataTest.cpp

4
src/Magnum/Trade/Test/MeshDataTest.cpp

@ -1471,8 +1471,8 @@ void MeshDataTest::construct() {
CORRADE_COMPARE(data.mutableAttribute<Vector2>(MeshAttribute::TextureCoordinates, 0)[0], (Vector2{0.000f, 0.125f}));
CORRADE_COMPARE(data.mutableAttribute<Vector2>(MeshAttribute::TextureCoordinates, 1)[1], (Vector2{0.250f, 0.375f}));
/* Array */
CORRADE_COMPARE(data.attribute<Short[]>(meshAttributeCustom(13))[2][0], 22);
CORRADE_COMPARE(data.attribute<Short[]>(meshAttributeCustom(13))[2][1], -1);
CORRADE_COMPARE(data.mutableAttribute<Short[]>(meshAttributeCustom(13))[2][0], 22);
CORRADE_COMPARE(data.mutableAttribute<Short[]>(meshAttributeCustom(13))[2][1], -1);
}
}

Loading…
Cancel
Save