Skip to content

Commit

Permalink
fix samples filename
Browse files Browse the repository at this point in the history
  • Loading branch information
marekzajac97 committed Aug 30, 2024
1 parent a2aaf5c commit 4f8c06f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions io_scene_bf2/core/object_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,10 +223,10 @@ def export_object(mesh_obj, con_file, geom_export=True, colmesh_export=True,
MIN_SAMPLE_SIZE = 8
if lod_idx == 0:
sample_size = samples_size
samples_filename = bf2_mesh.name + '.samples'
samples_filename = obj_name + '.samples'
else:
sample_size = [max(int(i / (2**lod_idx)), MIN_SAMPLE_SIZE) for i in samples_size]
samples_filename = bf2_mesh.name + f'.samp_{lod_idx:02d}'
samples_filename = obj_name + f'.samp_{lod_idx:02d}'

samples = BF2Samples(bf2_lod, size=sample_size, sample_padding=sample_padding,
use_edge_margin=use_edge_margin, uv_chan=4)
Expand Down

0 comments on commit 4f8c06f

Please sign in to comment.