Skip to content

Commit

Permalink
blend2gltf: Do not use sparse accessors with Blender 4.0+
Browse files Browse the repository at this point in the history
panda3d-gltf is not liking these at the moment, and there is
not much benefit for blend2bam to try and reduce the size of the intermediate glTF file.
  • Loading branch information
Moguri committed Dec 14, 2023
1 parent 87c1cf3 commit edddb81
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions blend2bam/blender_scripts/exportgltf.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,8 @@ def export_gltf(settings, src, dst):
exp_opts['convert_lighting_mode'] = 'RAW'
if 'export_import_convert_lighting_mode' in exporter_options:
exp_opts['export_import_convert_lighting_mode'] = 'RAW'
if 'export_try_sparse_sk' in exporter_options:
exp_opts['export_try_sparse_sk'] = False

bpy.ops.export_scene.gltf(**exp_opts)

Expand Down

0 comments on commit edddb81

Please sign in to comment.