Blender Git Loki
Git Commits -> Revision a404e3f
Revision a404e3f by Campbell Barton (master) January 15, 2013, 04:33 (GMT) |
fix issue reported in '[#33876] bpy.path.ensure_ext adds extension twice / extra period if filename empty, just a period or equal to extension' For python operators that used the ExportHelper mix-in class, an empty file field would become '.ext', entering and existing the text field would become '.ext.ext', Now only add an extension if the filename part of the path is set, so '.ext' will still become '.ext.ext' but having only the extension isn't so likely to happen in the first place now. This is a different fix then the changes suggested in the report but I'd prefer to keep path functions stupid+predictable. |
Commit Details:
Full Hash: a404e3f7804e216d0e179563141a702e7ff802d3
SVN Revision: 53803
Parent Commit: 8496a5a
Lines Changed: +11, -8
1 Modified Path:
/release/scripts/modules/bpy_extras/io_utils.py (+11, -8) (Diff)