From: Angelo Scandaliato Date: Wed, 28 Sep 2016 22:56:06 +0000 (-0700) Subject: work around for indices array in ExportData X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f2e6f2f67f04a8c28bc9d025321ae8ac1460995c;p=platform%2Fupstream%2Fassimp.git work around for indices array in ExportData --- diff --git a/code/glTFExporter.cpp b/code/glTFExporter.cpp index 2da709c..6bff387 100644 --- a/code/glTFExporter.cpp +++ b/code/glTFExporter.cpp @@ -207,7 +207,12 @@ inline Ref ExportData(Asset& a, std::string& meshName, Ref& bu for (int i = 0 ; i < count ; i++) { for (int j = 0 ; j < numCompsOut ; j++) { - valueTmp = static_cast(data)[i][j]; + if (numCompsOut == 1) { + valueTmp = static_cast(data)[i]; + } else { + valueTmp = static_cast(data)[i][j]; + } + if (valueTmp < acc->min[j]) { acc->min[j] = valueTmp; }