diff --git a/code/glTFExporter.cpp b/code/glTFExporter.cpp index 2da709cee..6bff38737 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; }