Skip to content

Commit

Permalink
Merge pull request zeux#620 from zeux/iv1
Browse files Browse the repository at this point in the history
indexcodec: Bump default encoding version to 1
  • Loading branch information
zeux authored Oct 13, 2023
2 parents 7db574d + bb9f988 commit a8ca6b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions gltf/gltfpack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1200,6 +1200,7 @@ int main(int argc, char** argv)
setlocale(LC_ALL, "C"); // disable locale specific convention for number parsing/printing
#endif

meshopt_encodeVertexVersion(0);
meshopt_encodeIndexVersion(1);

Settings settings = defaults();
Expand Down
2 changes: 1 addition & 1 deletion src/indexcodec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace meshopt
const unsigned char kIndexHeader = 0xe0;
const unsigned char kSequenceHeader = 0xd0;

static int gEncodeIndexVersion = 0;
static int gEncodeIndexVersion = 1;

typedef unsigned int VertexFifo[16];
typedef unsigned int EdgeFifo[16][2];
Expand Down

0 comments on commit a8ca6b0

Please sign in to comment.