Fix armatures not visible in VR

Now that VR offscreen drawing accounts for object type visibility,
armatures should be displayed when specified.
This commit is contained in:
Peter Kim 2022-06-09 06:59:03 +09:00 committed by Philipp Oeser
parent 9e04082c12
commit a7c923c6d5
Notes: blender-bot 2023-02-14 10:54:29 +01:00
Referenced by issue #98661, 3.2: Potential candidates for corrective releases
1 changed files with 4 additions and 2 deletions

View File

@ -1786,11 +1786,13 @@ void ED_view3d_draw_offscreen_simple(Depsgraph *depsgraph,
}
/* Disable other overlays (set all available _HIDE_ flags). */
v3d.overlay.flag |= V3D_OVERLAY_HIDE_CURSOR | V3D_OVERLAY_HIDE_TEXT |
V3D_OVERLAY_HIDE_MOTION_PATHS | V3D_OVERLAY_HIDE_BONES |
V3D_OVERLAY_HIDE_OBJECT_ORIGINS;
V3D_OVERLAY_HIDE_MOTION_PATHS | V3D_OVERLAY_HIDE_OBJECT_ORIGINS;
if ((draw_flags & V3D_OFSDRAW_SHOW_OBJECT_EXTRAS) == 0) {
v3d.overlay.flag |= V3D_OVERLAY_HIDE_OBJECT_XTRAS;
}
if ((object_type_exclude_viewport_override & (1 << OB_ARMATURE)) != 0) {
v3d.overlay.flag |= V3D_OVERLAY_HIDE_BONES;
}
v3d.flag |= V3D_HIDE_HELPLINES;
}