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

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-04-28 16:03:47 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-04-28 16:03:47 +0300
commit0b7bda808ee0fccdd5985c6410cff3542e6286e9 (patch)
tree0876446e703cd9d33ee2c813a9cfb90bf5bedf00 /release
parent85d4a733cf5e287b0f413046f1b2c04882c699c0 (diff)
parent0b6892f0ba114e6b3dfd40aac2727b4b1efacb66 (diff)
Merge branch 'blender-v2.93-release'
Diffstat (limited to 'release')
-rw-r--r--release/scripts/modules/bpy_extras/io_utils.py12
1 files changed, 5 insertions, 7 deletions
diff --git a/release/scripts/modules/bpy_extras/io_utils.py b/release/scripts/modules/bpy_extras/io_utils.py
index 19697b25f70..7eb9b2aa347 100644
--- a/release/scripts/modules/bpy_extras/io_utils.py
+++ b/release/scripts/modules/bpy_extras/io_utils.py
@@ -94,13 +94,11 @@ class ExportHelper:
if check_extension is not None:
filepath = self.filepath
if os.path.basename(filepath):
- filepath = bpy.path.ensure_ext(
- filepath,
- self.filename_ext
- if check_extension
- else "",
- )
-
+ if check_extension:
+ filepath = bpy.path.ensure_ext(
+ os.path.splitext(filepath)[0],
+ self.filename_ext,
+ )
if filepath != self.filepath:
self.filepath = filepath
change_ext = True