paint: save mesh physics

This commit is contained in:
luboslenco
2026-08-03 20:55:34 +02:00
parent c35ab08fe3
commit 1173428bbe
6 changed files with 41 additions and 4 deletions
+7 -1
View File
@@ -206,7 +206,7 @@ buffer_t *util_encode_project(project_t *raw) {
buffer_t *encoded = buffer_create(size);
armpack_encode_start(encoded->buffer);
armpack_encode_map(36);
armpack_encode_map(38);
armpack_encode_string("version");
armpack_encode_string(raw->version);
@@ -478,6 +478,12 @@ buffer_t *util_encode_project(project_t *raw) {
armpack_encode_string("mesh_parents");
armpack_encode_array_i32(raw->mesh_parents);
armpack_encode_string("mesh_physics_shapes");
armpack_encode_array_i32(raw->mesh_physics_shapes);
armpack_encode_string("mesh_physics_masses");
armpack_encode_array_f32(raw->mesh_physics_masses);
armpack_encode_string("atlas_objects");
armpack_encode_array_i32(raw->atlas_objects);
armpack_encode_string("atlas_names");