summaryrefslogtreecommitdiff
path: root/model.cpp
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2025-01-12 00:14:16 +1100
committerquou <quou@disroot.org>2025-01-12 00:14:16 +1100
commitdb7e94765c972ef940bf431e541dda4d893efc40 (patch)
tree1d374bdc42cb4d90c3121cbf878d324936f271ad /model.cpp
parent306c6318a32a9af351daaa60d2cc082e45e30dd4 (diff)
calculate model bounds at compile timeHEADmaster
Diffstat (limited to 'model.cpp')
-rw-r--r--model.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/model.cpp b/model.cpp
index dac6538..9e78b19 100644
--- a/model.cpp
+++ b/model.cpp
@@ -139,6 +139,8 @@ Asset* Model_Loader::load(
pack_read(f, &vertex_count, 4);
pack_read(f, &mesh.parent, 4);
pack_read(f, &mesh.local, 64);
+ pack_read(f, &mesh.bound.min, 12);
+ pack_read(f, &mesh.bound.max, 12);
pack_read(f, &verts[coff], vertex_count * vertex_size);
pack_read(f, &indices[icoff], mesh.count * sizeof *indices);
mesh.vbo_offset = vcoff;