diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-07-01 09:26:48 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-07-01 09:28:12 +0300 |
commit | 0d31ab362e6dae2f22c36d1016643dcfe3abbea8 (patch) | |
tree | a5456e5654625d6d7ebd486a4e279bef848789a8 | |
parent | 24979ccb653af452db101c170857392a4dbb7c71 (diff) |
Revert "Experimental Tweak: Only show relationship lines between objects when either the parent/child object is selected"
This reverts commit 912931964723cb69dafd4adebe3daf093e3e78c1.
This meant users needed to select everything to see relationship lines,
this isn't always easy since objects can have limit-selection set.
This could be made into an enum option if it's important.
-rw-r--r-- | source/blender/draw/modes/object_mode.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/source/blender/draw/modes/object_mode.c b/source/blender/draw/modes/object_mode.c index 288a7f80e1e..736bde725ae 100644 --- a/source/blender/draw/modes/object_mode.c +++ b/source/blender/draw/modes/object_mode.c @@ -1932,13 +1932,8 @@ static void DRW_shgroup_lightprobe(OBJECT_StorageList *stl, OBJECT_PassList *psl static void DRW_shgroup_relationship_lines(OBJECT_StorageList *stl, Object *ob) { if (ob->parent && DRW_check_object_visible_within_active_context(ob->parent)) { - /* Only draw relationship lines when object or its parent are selected - * as a way of reducing visual clutter. - */ - if ((ob->base_flag & BASE_SELECTED) || (ob->parent->base_flag & BASE_SELECTED)) { - DRW_shgroup_call_dynamic_add(stl->g_data->relationship_lines, ob->parent->obmat[3]); - DRW_shgroup_call_dynamic_add(stl->g_data->relationship_lines, ob->obmat[3]); - } + DRW_shgroup_call_dynamic_add(stl->g_data->relationship_lines, ob->parent->obmat[3]); + DRW_shgroup_call_dynamic_add(stl->g_data->relationship_lines, ob->obmat[3]); } if (ob->rigidbody_constraint) { |