Browse Source

sceneconverter: note how many dimensions images have in --info.

Same as with imageconverter in 696e9fb105.
This stuff should get deduplicated because such errors will happen more
and more.
pull/537/head
Vladimír Vondruš 5 years ago
parent
commit
cf5b02b2bc
  1. 5
      src/Magnum/MeshTools/sceneconverter.cpp

5
src/Magnum/MeshTools/sceneconverter.cpp

@ -773,7 +773,10 @@ used.)")
for(const Trade::Implementation::ImageInfo& info: imageInfos) { for(const Trade::Implementation::ImageInfo& info: imageInfos) {
Debug d; Debug d;
if(info.level == 0) { if(info.level == 0) {
d << "Image" << info.image << Debug::nospace << ":"; if(info.size.z()) d << "3D image";
else if(info.size.y()) d << "2D image";
else d << "1D image";
d << info.image << Debug::nospace << ":";
if(!info.name.empty()) d << info.name; if(!info.name.empty()) d << info.name;
if(compactImages) d << Debug::newline; if(compactImages) d << Debug::newline;
} }

Loading…
Cancel
Save