Fix T50932: depth picking w/ pose-bone constraints
This commit is contained in:
@@ -1265,7 +1265,7 @@ static void draw_b_bone(const short dt, int armflag, int boneflag, short constfl
|
|||||||
else {
|
else {
|
||||||
/* wire */
|
/* wire */
|
||||||
if (armflag & ARM_POSEMODE) {
|
if (armflag & ARM_POSEMODE) {
|
||||||
if (constflag) {
|
if (constflag && ((G.f & G_PICKSEL) == 0)) {
|
||||||
/* set constraint colors */
|
/* set constraint colors */
|
||||||
if (set_pchan_glColor(PCHAN_COLOR_CONSTS, boneflag, constflag)) {
|
if (set_pchan_glColor(PCHAN_COLOR_CONSTS, boneflag, constflag)) {
|
||||||
glEnable(GL_BLEND);
|
glEnable(GL_BLEND);
|
||||||
@@ -1406,7 +1406,7 @@ static void draw_bone(const short dt, int armflag, int boneflag, short constflag
|
|||||||
set_ebone_glColor(boneflag);
|
set_ebone_glColor(boneflag);
|
||||||
}
|
}
|
||||||
else if (armflag & ARM_POSEMODE) {
|
else if (armflag & ARM_POSEMODE) {
|
||||||
if (constflag) {
|
if (constflag && ((G.f & G_PICKSEL) == 0)) {
|
||||||
/* draw constraint colors */
|
/* draw constraint colors */
|
||||||
if (set_pchan_glColor(PCHAN_COLOR_CONSTS, boneflag, constflag)) {
|
if (set_pchan_glColor(PCHAN_COLOR_CONSTS, boneflag, constflag)) {
|
||||||
glEnable(GL_BLEND);
|
glEnable(GL_BLEND);
|
||||||
|
Reference in New Issue
Block a user