Fix T50932: depth picking w/ pose-bone constraints

This commit is contained in:
Campbell Barton 2017-03-14 18:01:04 +11:00
parent 76acaefdd7
commit 810982a95c
Notes: blender-bot 2023-02-14 07:09:31 +01:00
Referenced by issue #50932, OpenGL depth picking - Bones with constraint need two RMB to be selected
1 changed files with 2 additions and 2 deletions

View File

@ -1265,7 +1265,7 @@ static void draw_b_bone(const short dt, int armflag, int boneflag, short constfl
else {
/* wire */
if (armflag & ARM_POSEMODE) {
if (constflag) {
if (constflag && ((G.f & G_PICKSEL) == 0)) {
/* set constraint colors */
if (set_pchan_glColor(PCHAN_COLOR_CONSTS, boneflag, constflag)) {
glEnable(GL_BLEND);
@ -1406,7 +1406,7 @@ static void draw_bone(const short dt, int armflag, int boneflag, short constflag
set_ebone_glColor(boneflag);
}
else if (armflag & ARM_POSEMODE) {
if (constflag) {
if (constflag && ((G.f & G_PICKSEL) == 0)) {
/* draw constraint colors */
if (set_pchan_glColor(PCHAN_COLOR_CONSTS, boneflag, constflag)) {
glEnable(GL_BLEND);