diff options
author | Joseph Gilbert <ascotan@gmail.com> | 2005-02-22 01:00:11 +0300 |
---|---|---|
committer | Joseph Gilbert <ascotan@gmail.com> | 2005-02-22 01:00:11 +0300 |
commit | 3cd546e484a607ba8b8f98151caf7c2e4f3fc44f (patch) | |
tree | 5b09f3a68e9de7adbf32c638b252f12d67837632 /source/blender/python | |
parent | 34b61ee4e98d68976db50af8353a279e7bb1953a (diff) |
Patch submitted by Michael Reimpell
- Adds NormalMap to python's list of Texture Image flags
Diffstat (limited to 'source/blender/python')
-rw-r--r-- | source/blender/python/api2_2x/Texture.c | 3 | ||||
-rw-r--r-- | source/blender/python/api2_2x/doc/Texture.py | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/python/api2_2x/Texture.c b/source/blender/python/api2_2x/Texture.c index 12c4ab362f2..62e57d594d2 100644 --- a/source/blender/python/api2_2x/Texture.c +++ b/source/blender/python/api2_2x/Texture.c @@ -120,6 +120,7 @@ #define EXPP_TEX_IMAGEFLAG_MOVIE TEX_ANIM5 #define EXPP_TEX_IMAGEFLAG_STFIELD TEX_STD_FIELD #define EXPP_TEX_IMAGEFLAG_ANTI TEX_ANTIALI +#define EXPP_TEX_IMAGEFLAG_NORMALMAP TEX_NORMALMAP #define EXPP_TEX_EXTEND_EXTEND TEX_EXTEND #define EXPP_TEX_EXTEND_CLIP TEX_CLIP @@ -213,6 +214,7 @@ static const EXPP_map_pair tex_imageflag_map[] = { {"Movie", EXPP_TEX_IMAGEFLAG_MOVIE}, {"StField", EXPP_TEX_IMAGEFLAG_STFIELD}, {"Anti", EXPP_TEX_IMAGEFLAG_ANTI}, + {"NormalMap", EXPP_TEX_IMAGEFLAG_NORMALMAP}, {NULL, 0} }; @@ -799,6 +801,7 @@ static PyObject *M_Texture_ImageFlagsDict( void ) EXPP_ADDCONST( STFIELD ); EXPP_ADDCONST( MOVIE ); EXPP_ADDCONST( CYCLIC ); + EXPP_ADDCONST( NORMALMAP ); } return ImageFlags; } diff --git a/source/blender/python/api2_2x/doc/Texture.py b/source/blender/python/api2_2x/doc/Texture.py index af23cb37b26..49289c2fc5c 100644 --- a/source/blender/python/api2_2x/doc/Texture.py +++ b/source/blender/python/api2_2x/doc/Texture.py @@ -64,6 +64,7 @@ Example:: - MOVIE - Use a movie for an image - CYCLIC - Repeat animation image - ANTI - Use anti-aliasing + - NORMALMAP - Use image RGB values for normal mapping @type ExtendModes: readonly dictionary @var ExtendModes: Extend, clamp or repeat modes for images |