From b219a65dfaab7d417062146beba2b2db33d2f6f2 Mon Sep 17 00:00:00 2001 From: Nicholas Bishop Date: Sun, 7 Jan 2007 05:47:58 +0000 Subject: [PATCH] Fixed bug #5627, Retopo Paint doesn't work with LMB set as the main mouse button --- source/blender/src/retopo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;