Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Kim <pk15950@gmail.com>2022-06-09 00:59:03 +0300
committerPeter Kim <pk15950@gmail.com>2022-06-09 00:59:03 +0300
commit4ff9c0f4e3e3c3ce958619643fbdce175a2b6723 (patch)
tree2c8902091355cfb5f9562363aca7dd417876124f /source/blender/editors/space_view3d
parent371fc68678d51576809e4a2e4e70906ef32be69e (diff)
Fix armatures not visible in VR
Now that VR offscreen drawing accounts for object type visibility, armatures should be displayed when specified.
Diffstat (limited to 'source/blender/editors/space_view3d')
-rw-r--r--source/blender/editors/space_view3d/view3d_draw.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/editors/space_view3d/view3d_draw.c b/source/blender/editors/space_view3d/view3d_draw.c
index 5b068750d76..b9e4c19295d 100644
--- a/source/blender/editors/space_view3d/view3d_draw.c
+++ b/source/blender/editors/space_view3d/view3d_draw.c
@@ -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;
}