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-09-24 23:29:25 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2006-09-24 23:29:25 +0400
commitef7200741beaf9df968e8e8e7ef6cfed5a51ccb3 (patch)
tree3dac4fed58960e9a857a7d1382661ea6eb771c51 /source/blender/src/vpaint.c
parent7f7f35d1ca75885eec6c062f9af00e4d0f39dbd0 (diff)
Basic pressure sensitivity support in imagepaint, for opacity, size,
falloff and spacing. Click the button labeled "P" next to the sliders. Works best for opacity, other options can give poor quality strokes in some cases. Also performance needs to be improved. Remember, works only on X11 and Mac, no Windows support for tablets yet.
Diffstat (limited to 'source/blender/src/vpaint.c')
-rw-r--r--source/blender/src/vpaint.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/src/vpaint.c b/source/blender/src/vpaint.c
index 380763834ac..cf4c5e9b9fc 100644
--- a/source/blender/src/vpaint.c
+++ b/source/blender/src/vpaint.c
@@ -547,6 +547,9 @@ void sample_vpaint() /* frontbuf */
brush->rgb[0]= cp[0]/255.0f;
brush->rgb[1]= cp[1]/255.0f;
brush->rgb[2]= cp[2]/255.0f;
+
+ allqueue(REDRAWVIEW3D, 0);
+ allqueue(REDRAWIMAGE, 0);
}
}