Blender Git Loki
Git Commits -> Revision 8383a2d
Revision 8383a2d by Sybren A. Stüvel (master) September 3, 2015, 11:09 (GMT) |
Fix: Made bpy.path.ensure_ext compatible with compound extensions. Extensions such as ".tar.gz" are now also supported. Before this patch, ensure_ext('demo.tar.gz', '.tar.gz') would return 'demo.tar.tar.gz'. This results in issues with the `ExportHelper` mix-in class; clicking an existing file in the file dialogue warns about overwriting it (highlighting the input box in red), but then saves to a different file. Also added a unit test for the new behaviour. Reviewers: mont29, campbellbarton Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D1498 |
Commit Details:
Full Hash: 8383a2d4cc32c8516f11364aae079aeae93116c9
Parent Commit: e5e65b1
Lines Changed: +47, -10
1 Added Path:
/tests/python/bl_bpy_path.py (+41, -0) (View)
1 Modified Path:
/release/scripts/modules/bpy/path.py (+6, -10) (Diff)