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:
authorJens Ole Wund <bjornmose@gmx.net>2005-09-12 23:20:53 +0400
committerJens Ole Wund <bjornmose@gmx.net>2005-09-12 23:20:53 +0400
commitc27799910f48d5c03a2211cde3964d4a82ebd8dc (patch)
treeb0de18878acaa15f42720ffe1c2ea92382caef1a /source/blender/src/imagepaint.c
parent16b146d5168b9e2d933a6e54e7144491bb87407b (diff)
bug fix:
UV paint tool did not work with swapped mouse buttons in user prefs.
Diffstat (limited to 'source/blender/src/imagepaint.c')
-rw-r--r--source/blender/src/imagepaint.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/src/imagepaint.c b/source/blender/src/imagepaint.c
index 4f0671d3d76..69355a10600 100644
--- a/source/blender/src/imagepaint.c
+++ b/source/blender/src/imagepaint.c
@@ -145,7 +145,7 @@ void UVTexturePaintToolAt(short* where)
UVTEXTTOOL_RAD[1] = data->softradius*data->size*sima->zoom/2;
}
-void UVTexturePaintMsg( void *spacedata, unsigned short event,short val)
+void UVTexturePaintMsg( void *spacedata, unsigned short event,short val,short paintmousebut)
/* handle events in texturepaint mode of UV-Image Editor*/
{
SpaceImage *sima= curarea->spacedata.first;
@@ -220,7 +220,7 @@ void UVTexturePaintMsg( void *spacedata, unsigned short event,short val)
}
getmouseco_areawin(xy_prev);
brushtime = PIL_check_seconds_timer();
- while (get_mbut() & L_MOUSE) {
+ while (get_mbut() & paintmousebut) {
UVTEXTTOOL_SHAPE = 0;
getmouseco_areawin(xy_curr);
/* check for timed actions */
@@ -325,7 +325,7 @@ void UVTexturePaintMsg( void *spacedata, unsigned short event,short val)
/* call the color lifter */
if (UVTEXTTOOL_INDEX==6){
getmouseco_areawin(xy_prev);
- while (get_mbut() & R_MOUSE) {
+ while (get_mbut() & paintmousebut) {
getmouseco_areawin(xy_curr);
/* check for movement actions */
if ((xy_prev[0] != xy_curr[0]) || (xy_prev[1] != xy_curr[1]) ) {