diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2006-08-27 17:29:00 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2006-08-27 17:29:00 +0400 |
commit | b39f4b788dc9c5ccc9430b02852cbc1cbe56eca1 (patch) | |
tree | 7a1c91c3d4235db02b231ab5f504b31c2c0e4f15 /source/blender/src/editface.c | |
parent | 84205fe0e0bfc524b8fd9ba09aedbf98b0b9457b (diff) |
Texturepaint now supports all the imagepaint brush settings, with the
exception of the clone tool.
One level undo for image- and texturepaint, only storing those tiles
that changed.
Test to improve texturepaint performance using glTexSubImage2D, only
enabled with 2^n sized textures and mipmapping off. Painting a 2048x2048
texture is then pretty smooth here, as long as the geometry is not too
complex.
Diffstat (limited to 'source/blender/src/editface.c')
-rw-r--r-- | source/blender/src/editface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/src/editface.c b/source/blender/src/editface.c index b97b89cbe5a..6a671a0da93 100644 --- a/source/blender/src/editface.c +++ b/source/blender/src/editface.c @@ -1575,7 +1575,7 @@ void texpaint_pick_uv(Object *ob, Mesh *mesh, TFace *tf, short *xy, float *uv) if (nvert == 4) { texpaint_barycentric_2d(v1, v2, v4, p, w); - + if(w[0] < 0.0f) { /* if w[0] is negative, co is on the other side of the v1-v3 edge, so we interpolate using the other triangle */ |