Blender Git Commit Log

Git Commits -> Revision 9dbe85c

Revision 9dbe85c by Campbell Barton (master)
January 4, 2013, 03:47 (GMT)
expose common extensions for image/movie/audio types, since python scripts had to do this internally.
- bpy.path.extensions_image
- bpy.path.extensions_movie
- bpy.path.extensions_audio

eg:

if os.path.splitext(filename)[1].lower() in bpy.path.extensions_image:
... we have an image ...

Commit Details:

Full Hash: 9dbe85c17ea0e3a9279780e51a9caea69ea056ed
SVN Revision: 53547
Parent Commit: a50794e
Lines Changed: +29, -0

5 Modified Paths:

/release/scripts/modules/bpy/path.py (+7, -0) (Diff)
/source/blender/python/generic/py_capi_utils.c (+17, -0) (Diff)
/source/blender/python/generic/py_capi_utils.h (+1, -0) (Diff)
/source/blender/python/intern/bpy_interface.c (+2, -0) (Diff)
/source/blender/python/intern/CMakeLists.txt (+2, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021