Skip to content

Commit fa88c40

Browse files
authored
^.8.10 - fix UnityPyBoost.Mesh.unpack_vertex (K0lb3#109)
* Update Mesh.c * Update __init__.py * Update setup.py * Delete 001_2018_dog
1 parent 52e97d2 commit fa88c40

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

001_2018_dog

-644 KB
Binary file not shown.

UnityPy/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "1.8.9"
1+
__version__ = "1.8.10"
22

33
from .environment import Environment
44

UnityPyBoost/Mesh.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ PyObject *unpack_vertexdata(PyObject *self, PyObject *args)
2525
// define vars
2626
int componentByteSize;
2727
uint32_t m_VertexCount;
28-
char swap;
28+
uint8_t swap;
2929
// char format;
3030
uint8_t *vertexData; // m_VertexData.m_DataSize
3131
uint32_t m_StreamOffset;
@@ -68,7 +68,7 @@ PyObject *unpack_vertexdata(PyObject *self, PyObject *args)
6868
uint16_t *componentUints = (uint16_t *)componentBytes;
6969
for (uint32_t i = 0; i < componentBytesLength; i += 2)
7070
{
71-
*componentUints = bswap16(*componentUints);
71+
*componentUints++ = bswap16(*componentUints);
7272
}
7373
}
7474
else if (componentByteSize == 4)

UnityPyBoost/setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
name="UnityPyBoost",
99
description="TODO",
1010
author="K0lb3",
11-
version="0.0.2",
11+
version="0.0.3",
1212
ext_modules=[
1313
Extension(
1414
"UnityPyBoost",
@@ -20,4 +20,4 @@
2020
include_dirs=[local],
2121
)
2222
],
23-
)
23+
)

0 commit comments

Comments
 (0)