Page MenuHome

ExportHelper: filename_ext change is appended to the previous name + ext instead of changing ext
Confirmed, NormalPublic

Description

System Information
Operating system: Darwin-18.7.0-x86_64-i386-64bit 64 Bits
Graphics card: Intel Iris OpenGL Engine Intel Inc. 4.1 INTEL-12.10.25

Blender Version
Broken: version: 2.92.0 Beta, branch: master, commit date: 2021-02-03 20:05, hash: rBebd2aa789e40
Worked: (newest version of Blender that worked as expected)

Short description of error
Using ExportHelper, changing filename_ext (which is an enum) appends the fulfilled ext to the previous name + ext instead of only changing the extension.

Exact steps for others to reproduce the error

  • In scripting workspace, open this file and run it:
  • In the top right corner, change the extension in the enum.
  • The picked extension is appended to the current filename + ext instead of changing the extension only.

Event Timeline

Philipp Oeser (lichtwerk) changed the task status from Needs Triage to Confirmed.Tue, Feb 16, 1:09 PM

Can confirm this is a bit awkward to use.
I think there are ways to get around this, but will check on a general fix.