Skip to content

Commit

Permalink
Change chunk export order
Browse files Browse the repository at this point in the history
  • Loading branch information
feliwir committed Sep 9, 2023
1 parent 68278fe commit 033721d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions io_mesh_w3d/w3d/export_w3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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)
Expand Down

0 comments on commit 033721d

Please sign in to comment.