diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2006-11-27 02:14:52 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2006-11-27 02:14:52 +0300 |
commit | 9afa4619eddd61e2b125cf10bb13f567702f9d9e (patch) | |
tree | 8d2f0bfd5269a86f4377a9aabbd88b6e221eeb91 /source/blender/src/editface.c | |
parent | 0cd62a9298663999fb567c1e8bd6384a5105f425 (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.c | 6 |
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) */ |