From e28004fcb37c6af3009f8713d6ff4366b93c439c Mon Sep 17 00:00:00 2001 From: Mitchell Stokes Date: Mon, 9 Jan 2023 01:33:31 -0800 Subject: [PATCH] gltf28: Set export_keep_originals to True if available This is the way blend2bam was built to operate anyways, and its texture handling needs to be reworked to properly support packed textures. --- blend2bam/blend2gltf/blender28_script.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/blend2bam/blend2gltf/blender28_script.py b/blend2bam/blend2gltf/blender28_script.py index 911c3e9..cff294b 100644 --- a/blend2bam/blend2gltf/blender28_script.py +++ b/blend2bam/blend2gltf/blender28_script.py @@ -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)