Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Gilbert <ascotan@gmail.com>2005-02-22 01:00:11 +0300
committerJoseph Gilbert <ascotan@gmail.com>2005-02-22 01:00:11 +0300
commit3cd546e484a607ba8b8f98151caf7c2e4f3fc44f (patch)
tree5b09f3a68e9de7adbf32c638b252f12d67837632 /source/blender/python/api2_2x/Texture.c
parent34b61ee4e98d68976db50af8353a279e7bb1953a (diff)
Patch submitted by Michael Reimpell
- Adds NormalMap to python's list of Texture Image flags
Diffstat (limited to 'source/blender/python/api2_2x/Texture.c')
-rw-r--r--source/blender/python/api2_2x/Texture.c3
1 files changed, 3 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;
}