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:
authorCampbell Barton <ideasman42@gmail.com>2007-03-12 04:43:11 +0300
committerCampbell Barton <ideasman42@gmail.com>2007-03-12 04:43:11 +0300
commit268fdb742532860120071c2886ee1811a6ead3b3 (patch)
treeb9f879f09fa2269aa455cf74c274fdbce6fa502f /source/blender/src/drawmesh.c
parentffd91ac7260d2d147a45be5f505b205bcb602e2c (diff)
added no-xtile and no-ytile to the images realtime properties and python api.
Diffstat (limited to 'source/blender/src/drawmesh.c')
-rw-r--r--source/blender/src/drawmesh.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/source/blender/src/drawmesh.c b/source/blender/src/drawmesh.c
index c8c07748d6a..2a22451f2f6 100644
--- a/source/blender/src/drawmesh.c
+++ b/source/blender/src/drawmesh.c
@@ -417,6 +417,18 @@ int set_tpage(MTFace *tface)
}
else glBindTexture( GL_TEXTURE_2D, *bind);
+ /* dont tile x/y as set the the game properties */
+ if (ima->tpageflag & IMA_NOREPEAT_U)
+ glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
+ else
+ glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT);
+ if (ima->tpageflag & IMA_NOREPEAT_V)
+ glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
+ else
+ glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT);
+
+ /* tag_image_time(ima);*/ /* Did this get lost in the image recode? */
+
glEnable(GL_TEXTURE_2D);
fCurpage= ima;