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:
authorJeroen Bakker <j.bakker@atmind.nl>2018-07-05 16:13:15 +0300
committerJeroen Bakker <j.bakker@atmind.nl>2018-07-05 17:57:22 +0300
commit35f8198c9de254ff0ef2595719275413f1b798a5 (patch)
tree2f7d78f3508b5530f6897da0ea109ba1f545abda /source/blender/draw/modes/object_mode.c
parent4dfcc6c25a6e058e107b996d08403b803cc52915 (diff)
Refactor: SHOW->HIDE
HIDE needs less code also in the future, RNA still uses SHOW.
Diffstat (limited to 'source/blender/draw/modes/object_mode.c')
-rw-r--r--source/blender/draw/modes/object_mode.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/draw/modes/object_mode.c b/source/blender/draw/modes/object_mode.c
index 2beb453e069..b8387a53f22 100644
--- a/source/blender/draw/modes/object_mode.c
+++ b/source/blender/draw/modes/object_mode.c
@@ -2217,38 +2217,38 @@ static void OBJECT_cache_populate(void *vedata, Object *ob)
break;
}
case OB_LAMP:
- if (v3d->overlay.visible_object_types & V3D_OVERLAY_SHOW_LAMP)
+ if ((v3d->overlay.hidden_object_types & V3D_OVERLAY_HIDE_LAMP) == 0)
{
DRW_shgroup_lamp(stl, ob, view_layer);
}
break;
case OB_CAMERA:
- if (v3d->overlay.visible_object_types & V3D_OVERLAY_SHOW_CAMERA)
+ if ((v3d->overlay.hidden_object_types & V3D_OVERLAY_HIDE_CAMERA) == 0)
{
DRW_shgroup_camera(stl, ob, view_layer);
}
break;
case OB_EMPTY:
- if (v3d->overlay.visible_object_types & V3D_OVERLAY_SHOW_EMPTY)
+ if ((v3d->overlay.hidden_object_types & V3D_OVERLAY_HIDE_EMPTY) == 0)
{
DRW_shgroup_empty(stl, psl, ob, view_layer);
}
break;
case OB_SPEAKER:
- if (v3d->overlay.visible_object_types & V3D_OVERLAY_SHOW_SPEAKER)
+ if ((v3d->overlay.hidden_object_types & V3D_OVERLAY_HIDE_SPEAKER) == 0)
{
DRW_shgroup_speaker(stl, ob, view_layer);
}
break;
case OB_LIGHTPROBE:
- if (v3d->overlay.visible_object_types & V3D_OVERLAY_SHOW_LIGHTPROBE)
+ if ((v3d->overlay.hidden_object_types & V3D_OVERLAY_HIDE_LIGHTPROBE) == 0)
{
DRW_shgroup_lightprobe(stl, psl, ob, view_layer);
}
break;
case OB_ARMATURE:
{
- if (v3d->overlay.visible_object_types & V3D_OVERLAY_SHOW_ARMATURE)
+ if ((v3d->overlay.hidden_object_types & V3D_OVERLAY_HIDE_ARMATURE) == 0)
{
bArmature *arm = ob->data;
if (arm->edbo == NULL) {