API:
authorArystanbek Dyussenov <arystan.d@gmail.com>
Thu, 23 Jul 2009 12:55:26 +0000 (12:55 +0000)
committerArystanbek Dyussenov <arystan.d@gmail.com>
Thu, 23 Jul 2009 12:55:26 +0000 (12:55 +0000)
commitc96041628e141b7bfc1da28be09510e7e0e5cd0a
tree96e259a248643a8f89cb856cf29651164cae51ce
parent00e219d8e97afcf3767a6d2b28a6d05bcc984279
API:
- replaced BKE_copy_images with BKE_export_image, now it handles only one image at a time, this is better since for exporters it is
easier to export one image at a time writing new image path to a file
- exposing BKE_export_image in RNA as Image.export, interestingly, RNA allowed me to define a function with PROP_STRING return type
although it doesn't free memory, will fix that in the next commit
- removed bpy.util.copy_images

Unit tests:
- re-wrote a test for BKE_export_image, it's more compact now
- moved unit tests to the creator module to avoid another executable, now running tests with `blender --test`
- as before, unit tests are built only if WITH_BF_UNIT_TEST is non 0
13 files changed:
SConstruct
release/io/export_fbx.py
source/blender/blenkernel/BKE_image.h
source/blender/blenkernel/intern/image.c
source/blender/makesrna/intern/makesrna.c
source/blender/makesrna/intern/rna_image.c
source/blender/python/intern/bpy_interface.c
source/blender/python/intern/bpy_util.c
source/creator/SConscript
source/creator/creator.c
source/creator/tests/alltest.c [new file with mode: 0644]
tools/Blender.py
tools/btools.py