one more parameter check for hdrfilm

metadata
Wenzel Jakob 2014-02-20 14:43:15 +01:00
parent 7ab560ca51
commit 82b2e1b8d4
1 changed files with 3 additions and 0 deletions

View File

@ -236,6 +236,9 @@ public:
if (pixelFormats.size() != 1 && channelNames.size() != pixelFormats.size())
Log(EError, "Number of channel names must match the number of specified pixel formats!");
if (m_pixelFormats.size() != 1 && m_fileFormat != Bitmap::EOpenEXR)
Log(EError, "General multi-channel output is only supported when writing OpenEXR files!");
for (size_t i=0; i<pixelFormats.size(); ++i) {
std::string pixelFormat = pixelFormats[i];
std::string name = i < channelNames.size() ? (channelNames[i] + std::string(".")) : "";