primitives: properly set mesh primitive.
Adapted to Magnum changes.