Fixed bug #5627, Retopo Paint doesn't work with LMB set as the main mouse button

This commit is contained in:
Nicholas Bishop 2007-01-07 05:47:58 +00:00
parent f4ee0f4b4c
commit b219a65dfa

@ -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;