From cf5b02b2bcfe779fc0e10b2efe923edfe554315c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 16 Aug 2021 18:05:25 +0200 Subject: [PATCH] sceneconverter: note how many dimensions images have in --info. Same as with imageconverter in 696e9fb1058a6ae88bccbc3db1c35fecce606a23. This stuff should get deduplicated because such errors will happen more and more. --- src/Magnum/MeshTools/sceneconverter.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Magnum/MeshTools/sceneconverter.cpp b/src/Magnum/MeshTools/sceneconverter.cpp index 7a04a5acd..45227f51c 100644 --- a/src/Magnum/MeshTools/sceneconverter.cpp +++ b/src/Magnum/MeshTools/sceneconverter.cpp @@ -773,7 +773,10 @@ used.)") for(const Trade::Implementation::ImageInfo& info: imageInfos) { Debug d; 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(compactImages) d << Debug::newline; }