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:
authorNicholas Bishop <nicholasbishop@gmail.com>2007-01-07 08:47:58 +0300
committerNicholas Bishop <nicholasbishop@gmail.com>2007-01-07 08:47:58 +0300
commitb219a65dfaab7d417062146beba2b2db33d2f6f2 (patch)
treecb0dd077cb5828c22d0e7d3070d9de38ab2f7ad6 /source/blender/src/retopo.c
parentf4ee0f4b4cac01c46ecc6857d401070066a64ac9 (diff)
Fixed bug #5627, Retopo Paint doesn't work with LMB set as the main mouse button
Diffstat (limited to 'source/blender/src/retopo.c')
-rw-r--r--source/blender/src/retopo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/src/retopo.c b/source/blender/src/retopo.c
index fea9b191690..428cd58eb98 100644
--- a/source/blender/src/retopo.c
+++ b/source/blender/src/retopo.c
@@ -40,6 +40,7 @@
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DNA_screen_types.h"
+#include "DNA_userdef_types.h"
#include "DNA_view3d_types.h"
#include "BDR_editobject.h"
@@ -459,7 +460,7 @@ char retopo_paint(const unsigned short event)
if(rpd) {
RetopoPaintLine *l;
short mouse[2];
- char lbut= get_mbut() & L_MOUSE;
+ char lbut= get_mbut() & (U.flag & USER_LMOUSESELECT ? R_MOUSE : L_MOUSE);
if(rpd->paint_v3d && rpd->paint_v3d!=G.vd) return 1;