From 28852fdc5c05d71d2ae25fd666340fcc7290f78e Mon Sep 17 00:00:00 2001 From: Rahul Sheth Date: Wed, 22 Jul 2020 11:41:04 -0400 Subject: [PATCH] another revert --- code/AssetLib/glTF/glTFExporter.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/AssetLib/glTF/glTFExporter.cpp b/code/AssetLib/glTF/glTFExporter.cpp index c5f9ed08ad..b85affc083 100644 --- a/code/AssetLib/glTF/glTFExporter.cpp +++ b/code/AssetLib/glTF/glTFExporter.cpp @@ -536,7 +536,10 @@ void glTFExporter::ExportMeshes() // Variables needed for compression. BEGIN. // Indices, not pointers - because pointer to buffer is changing while writing to it. + size_t idx_srcdata_begin = 0; // Index of buffer before writing mesh data. Also, index of begin of coordinates array in buffer. + size_t idx_srcdata_normal = SIZE_MAX;// Index of begin of normals array in buffer. SIZE_MAX - mean that mesh has no normals. std::vector idx_srcdata_tc;// Array of indices. Every index point to begin of texture coordinates array in buffer. + size_t idx_srcdata_ind;// Index of begin of coordinates indices array in buffer. bool comp_allow;// Point that data of current mesh can be compressed. // Variables needed for compression. END.