From 033721dea31d26f81d66599cb0e17c050046424e Mon Sep 17 00:00:00 2001 From: Stephan Vedder Date: Sat, 9 Sep 2023 13:45:39 +0200 Subject: [PATCH] Change chunk export order --- io_mesh_w3d/w3d/export_w3d.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/io_mesh_w3d/w3d/export_w3d.py b/io_mesh_w3d/w3d/export_w3d.py index 12a25464..59501ced 100644 --- a/io_mesh_w3d/w3d/export_w3d.py +++ b/io_mesh_w3d/w3d/export_w3d.py @@ -29,6 +29,10 @@ def save(context, export_settings, data_context): data_context.hierarchy.header.name = data_context.container_name data_context.hierarchy.write(file) + if export_mode == 'HAM': + data_context.animation.header.hierarchy_name = data_context.container_name + data_context.animation.write(file) + for box in data_context.collision_boxes: box.write(file) @@ -39,9 +43,6 @@ def save(context, export_settings, data_context): mesh.write(file) data_context.hlod.write(file) - if export_mode == 'HAM': - data_context.animation.header.hierarchy_name = data_context.container_name - data_context.animation.write(file) elif export_mode == 'A': data_context.animation.write(file)