Overlay: Armature: Fix Crash entering armature edit mode

This commit is contained in:
Clément Foucault 2019-12-03 16:14:47 +01:00
parent adb6be36e4
commit dcded19507
1 changed files with 2 additions and 1 deletions

View File

@ -999,7 +999,8 @@ static const float *get_bone_solid_with_consts_color(const ArmatureDrawContext *
const float *col = get_bone_solid_color(ctx, eBone, pchan, arm, boneflag, constflag);
static float consts_color[4];
if (set_pchan_color(ctx, PCHAN_COLOR_CONSTS, boneflag, constflag, consts_color)) {
if ((arm->flag & ARM_POSEMODE) &&
set_pchan_color(ctx, PCHAN_COLOR_CONSTS, boneflag, constflag, consts_color)) {
interp_v3_v3v3(consts_color, col, consts_color, 0.5f);
}
else {