From db7e94765c972ef940bf431e541dda4d893efc40 Mon Sep 17 00:00:00 2001 From: quou Date: Sun, 12 Jan 2025 00:14:16 +1100 Subject: calculate model bounds at compile time --- model.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'model.cpp') 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; -- cgit v1.2.3-54-g00ecf