diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2019-12-03 18:14:47 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2019-12-03 18:14:54 +0300 |
commit | dcded19507789ee59b6cda54f678802bd6a3ff69 (patch) | |
tree | 1c02ccce3e2457a987b3e5708cf4f78fc0e80c48 | |
parent | adb6be36e496262380eae2611f695b967ffce0f2 (diff) |
Overlay: Armature: Fix Crash entering armature edit mode
-rw-r--r-- | source/blender/draw/engines/overlay/overlay_armature.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/draw/engines/overlay/overlay_armature.c b/source/blender/draw/engines/overlay/overlay_armature.c index 8930ccb94b3..a45397e9d81 100644 --- a/source/blender/draw/engines/overlay/overlay_armature.c +++ b/source/blender/draw/engines/overlay/overlay_armature.c @@ -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 { |