Browse Source

sceneconverter: don't abort --info if there are no meshes or images.

We now print also animation, skin, ... info and this makes no sense.
pull/240/head
Vladimír Vondruš 5 years ago
parent
commit
111b2e9c4d
  1. 5
      src/Magnum/MeshTools/sceneconverter.cpp

5
src/Magnum/MeshTools/sceneconverter.cpp

@ -279,11 +279,6 @@ used.)")
/* Print file info, if requested */ /* Print file info, if requested */
if(args.isSet("info")) { if(args.isSet("info")) {
if(!importer->meshCount() && !importer->image1DCount() && !importer->image2DCount() && !importer->image2DCount()) {
Debug{} << "No meshes or images found.";
return 0;
}
struct AnimationInfo { struct AnimationInfo {
UnsignedInt animation; UnsignedInt animation;
Trade::AnimationData data{{}, {}}; Trade::AnimationData data{{}, {}};

Loading…
Cancel
Save