Skip to content

Commit 3c4c89d

Browse files
committed
VertexFormat - fix struct type mapping for float16 (h to e)
1 parent a9b4853 commit 3c4c89d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

UnityPy/enums/VertexFormat.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class VertexFormat(IntEnum):
5050

5151
VERTEX_FORMAT_2017_STRUCT_TYPE_MAP = {
5252
VertexFormat2017.kVertexFormatFloat: "f",
53-
VertexFormat2017.kVertexFormatFloat16: "h",
53+
VertexFormat2017.kVertexFormatFloat16: "e",
5454
VertexFormat2017.kVertexFormatColor: "B",
5555
VertexFormat2017.kVertexFormatUNorm8: "B",
5656
VertexFormat2017.kVertexFormatSNorm8: "b",
@@ -66,7 +66,7 @@ class VertexFormat(IntEnum):
6666

6767
VERTEX_FORMAT_STRUCT_TYPE_MAP = {
6868
VertexFormat.kVertexFormatFloat: "f",
69-
VertexFormat.kVertexFormatFloat16: "h",
69+
VertexFormat.kVertexFormatFloat16: "e",
7070
VertexFormat.kVertexFormatUNorm8: "B",
7171
VertexFormat.kVertexFormatSNorm8: "b",
7272
VertexFormat.kVertexFormatUNorm16: "H",

0 commit comments

Comments
 (0)