Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Duroure <julien.duroure@gmail.com>2019-12-29 15:05:31 +0300
committerJulien Duroure <julien.duroure@gmail.com>2019-12-29 15:05:31 +0300
commit60a11a0fc4426f01e87be0e019c5d909889e511e (patch)
treec0d957f5697574ceaac5a5698159b47fa9f7efd8 /io_scene_gltf2/blender/exp/gltf2_blender_export.py
parenta659ebbd5dbbc7bf7c3737275213a69b82968207 (diff)
glTF exporter: add option to export textures into a folder
Diffstat (limited to 'io_scene_gltf2/blender/exp/gltf2_blender_export.py')
-rwxr-xr-xio_scene_gltf2/blender/exp/gltf2_blender_export.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/io_scene_gltf2/blender/exp/gltf2_blender_export.py b/io_scene_gltf2/blender/exp/gltf2_blender_export.py
index 06af24cc..94babf78 100755
--- a/io_scene_gltf2/blender/exp/gltf2_blender_export.py
+++ b/io_scene_gltf2/blender/exp/gltf2_blender_export.py
@@ -49,21 +49,15 @@ def save(context, export_settings):
def __export(export_settings):
- exporter = GlTF2Exporter(__get_copyright(export_settings))
+ exporter = GlTF2Exporter(export_settings)
__gather_gltf(exporter, export_settings)
buffer = __create_buffer(exporter, export_settings)
- exporter.finalize_images(export_settings[gltf2_blender_export_keys.FILE_DIRECTORY])
+ exporter.finalize_images()
json = __fix_json(exporter.glTF.to_dict())
return json, buffer
-def __get_copyright(export_settings):
- if export_settings[gltf2_blender_export_keys.COPYRIGHT]:
- return export_settings[gltf2_blender_export_keys.COPYRIGHT]
- return None
-
-
def __gather_gltf(exporter, export_settings):
active_scene_idx, scenes, animations = gltf2_blender_gather.gather_gltf2(export_settings)