Fix: overlays are reset when selection is being performed

/me hits myself in the head. In selection code the flags were not tested
but set directly.
This commit is contained in:
Jeroen Bakker 2018-06-01 11:31:30 +02:00
parent c450966e95
commit d5a359b1d4
1 changed files with 2 additions and 2 deletions

View File

@ -1618,8 +1618,8 @@ void DRW_draw_select_loop(
obedit_mode = CTX_MODE_EDIT_ARMATURE;
}
}
if (v3d->overlay.flag &= V3D_OVERLAY_BONE_SELECTION) {
if (!(v3d->flag2 &= V3D_RENDER_OVERRIDE)) {
if (v3d->overlay.flag & V3D_OVERLAY_BONE_SELECTION) {
if (!(v3d->flag2 & V3D_RENDER_OVERRIDE)) {
Object *obpose = OBPOSE_FROM_OBACT(obact);
if (obpose) {
use_obedit = true;