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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2006-11-27 02:14:52 +0300
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2006-11-27 02:14:52 +0300
commit9afa4619eddd61e2b125cf10bb13f567702f9d9e (patch)
tree8d2f0bfd5269a86f4377a9aabbd88b6e221eeb91 /source/blender/src/editface.c
parent0cd62a9298663999fb567c1e8bd6384a5105f425 (diff)
Disable mipmapping in texture paint mode, so fast redrawing will now
work by default for power-of-two textures. Improved texture painting across different images a bit.
Diffstat (limited to 'source/blender/src/editface.c')
-rw-r--r--source/blender/src/editface.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/src/editface.c b/source/blender/src/editface.c
index a92aadc3c63..0d15318b094 100644
--- a/source/blender/src/editface.c
+++ b/source/blender/src/editface.c
@@ -1505,14 +1505,18 @@ void set_texturepaint() /* toggle */
if(me)
DAG_object_flush_update(G.scene, ob, OB_RECALC_DATA);
- if(G.f & G_TEXTUREPAINT)
+ if(G.f & G_TEXTUREPAINT) {
G.f &= ~G_TEXTUREPAINT;
+ texpaint_enable_mipmap();
+ }
else if (me) {
G.f |= G_TEXTUREPAINT;
brush_check_exists(&G.scene->toolsettings->imapaint.brush);
+ texpaint_disable_mipmap();
}
allqueue(REDRAWVIEW3D, 0);
+ allqueue(REDRAWBUTSEDIT, 0);
}
/* Get the barycentric coordinates of 2d point p in 2d triangle (v1, v2, v3) */