Skip to content

Commit

Permalink
gltf28: Set export_keep_originals to True if available
Browse files Browse the repository at this point in the history
This is the way blend2bam was built to operate anyways, and its texture
handling needs to be reworked to properly support packed textures.
  • Loading branch information
Moguri committed Jan 9, 2023
1 parent 04a2341 commit e28004f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions blend2bam/blend2gltf/blender28_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@ def export_gltf(settings, src, dst):
exp_opts['use_mesh_edges'] = True
if 'use_mesh_vertices' in exporter_options:
exp_opts['use_mesh_vertices'] = True
if 'export_keep_originals' in exporter_options:
exp_opts['export_keep_originals'] = True

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

Expand Down

0 comments on commit e28004f

Please sign in to comment.