Blender Git Commit Log

Git Commits -> Revision 0e01fa4

Revision 0e01fa4 by Campbell Barton (master)
August 28, 2011, 23:24 (GMT)
patch [#28355] Better Environment Map scripting
from Tom Edwards (artfunkel), with minor edits.

This patch makes the following improvements to environment map scripting:

* Adds a "is_valid" RNA property to envmaps. True if the map is ready for use, False if it needs rendering.
* Adds a "clear" RNA function to envmaps. Deletes any envmap image data.
* Adds a "save" RNA function to envmaps. Writes the envmap to disc with a configurable layout. (Defaults to the current hard-coded layout.)
* Updates bpy.ops.texture.envmap_save with configurable layout support as above.

These changes, particularly configurable layouts, make exporting envmaps to other software much easier.

Commit Details:

Full Hash: 0e01fa4863a301f9776b8a6b5459493fc8830008
SVN Revision: 39760
Parent Commit: c31b776
Lines Changed: +183, -53

1 Added Path:

/source/blender/makesrna/intern/rna_texture_api.c (+95, -0) (View)

7 Modified Paths:

/source/blender/editors/render/render_shading.c (+17, -52) (Diff)
/source/blender/makesrna/intern/CMakeLists.txt (+1, -0) (Diff)
/source/blender/makesrna/intern/makesrna.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_internal.h (+1, -0) (Diff)
/source/blender/makesrna/intern/rna_texture.c (+7, -0) (Diff)
/source/blender/render/extern/include/RE_pipeline.h (+4, -0) (Diff)
/source/blender/render/intern/source/pipeline.c (+57, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021