From 4ab3633d5bc69e06c2d04142b2a9edeca05c1efa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Thu, 28 Feb 2019 12:38:18 +0100 Subject: [PATCH] Trade: clarifying comment. --- src/Magnum/Trade/AbstractImporter.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Magnum/Trade/AbstractImporter.cpp b/src/Magnum/Trade/AbstractImporter.cpp index 521fcd002..72b73e726 100644 --- a/src/Magnum/Trade/AbstractImporter.cpp +++ b/src/Magnum/Trade/AbstractImporter.cpp @@ -88,6 +88,9 @@ bool AbstractImporter::openData(Containers::ArrayView data) { CORRADE_ASSERT(features() & Feature::OpenData, "Trade::AbstractImporter::openData(): feature not supported", {}); + /* We accept empty data here (instead of checking for them and failing so + the check doesn't be done on the plugin side) because for some file + formats it could be valid (e.g. OBJ or JSON-based formats). */ close(); doOpenData(data); return isOpened();