Fix T58690: Disable overlay doesn't hide bones

This commit is contained in:
Campbell Barton
2018-12-05 10:56:16 +11:00
parent 9c963d363e
commit 8fb3a222a1

View File

@@ -2742,7 +2742,9 @@ static void OBJECT_cache_populate(void *vedata, Object *ob)
break;
case OB_ARMATURE:
{
if (v3d->overlay.flag & V3D_OVERLAY_HIDE_BONES) {
if ((v3d->flag2 & V3D_RENDER_OVERRIDE) ||
(v3d->overlay.flag & V3D_OVERLAY_HIDE_BONES))
{
break;
}
bArmature *arm = ob->data;