Browse Source

Trade: use an enum debug printer instead of hardcoding the name.

Reduces needless string duplication and won't become stale when the APIs
get renamed.
pull/482/merge
Vladimír Vondruš 2 weeks ago
parent
commit
f21f8d3871
  1. 2
      src/Magnum/Trade/AbstractSceneConverter.cpp

2
src/Magnum/Trade/AbstractSceneConverter.cpp

@ -586,7 +586,7 @@ Containers::Pointer<AbstractImporter> AbstractSceneConverter::end() {
importer is closed afterwards, but that would result in
assertions which isn't nice. */
if(!_mesh) {
Error{} << "Trade::AbstractSceneConverter::end(): mesh can be retrieved only once from a converter with just Trade::SceneConverterFeature::ConvertMesh";
Error{} << "Trade::AbstractSceneConverter::end(): mesh can be retrieved only once from a converter with just" << SceneConverterFeature::ConvertMesh;
return {};
}

Loading…
Cancel
Save