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-03-19 20:20:33 +0300
committerJulien Duroure <julien.duroure@gmail.com>2019-03-19 20:20:33 +0300
commit1fe2251292952c46aceed8f5690d6c53b1c23432 (patch)
tree11619cca90c3ca19db61bb72dc4ec0b241878df4 /io_scene_gltf2/__init__.py
parent0aab8dd7fa963fd1a0de198e4d614bb4f14cc21a (diff)
fix T62426 glTF exporter: bad truncation of file extension
Diffstat (limited to 'io_scene_gltf2/__init__.py')
-rwxr-xr-xio_scene_gltf2/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/io_scene_gltf2/__init__.py b/io_scene_gltf2/__init__.py
index 0b68c8ba..7318487e 100755
--- a/io_scene_gltf2/__init__.py
+++ b/io_scene_gltf2/__init__.py
@@ -348,7 +348,8 @@ class ExportGLTF2_Base:
export_settings['gltf_displacement'] = self.export_displacement
export_settings['gltf_binary'] = bytearray()
- export_settings['gltf_binaryfilename'] = os.path.splitext(os.path.basename(self.filepath))[0] + '.bin'
+ export_settings['gltf_binaryfilename'] = os.path.splitext(os.path.basename(
+ bpy.path.ensure_ext(self.filepath,self.filename_ext)))[0] + '.bin'
return gltf2_blender_export.save(context, export_settings)