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:
authorCampbell Barton <ideasman42@gmail.com>2018-07-10 15:10:12 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-07-10 15:10:12 +0300
commitb23404d701c3b16931711ac534218c77d2e97a2a (patch)
treef2c61f06f0b4542de351c226f337cce358d9d54e /source/blender/draw/modes/pose_mode.c
parent39b1842335c8ed949b776993686fb27f090655e5 (diff)
3D View: overlay option to show bones
Allows drawing motion paths without the bones.
Diffstat (limited to 'source/blender/draw/modes/pose_mode.c')
-rw-r--r--source/blender/draw/modes/pose_mode.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/draw/modes/pose_mode.c b/source/blender/draw/modes/pose_mode.c
index 84c3bff406a..2c24b29c881 100644
--- a/source/blender/draw/modes/pose_mode.c
+++ b/source/blender/draw/modes/pose_mode.c
@@ -202,6 +202,9 @@ static void POSE_cache_populate(void *vedata, Object *ob)
* and similar functionalities. For now we handle only pose bones. */
if (ob->type == OB_ARMATURE) {
+ if (draw_ctx->v3d->overlay.flag & V3D_OVERLAY_HIDE_BONES) {
+ return;
+ }
if (DRW_pose_mode_armature(ob, draw_ctx->obact)) {
DRWArmaturePasses passes = {
.bone_solid = psl->bone_solid,