[Bf-blender-cvs] [0d31ab362e6] blender2.8: Revert "Experimental Tweak: Only show relationship lines between objects when either the parent/child object is selected"
Campbell Barton
noreply at git.blender.org
Sun Jul 1 08:30:54 CEST 2018
Commit: 0d31ab362e6dae2f22c36d1016643dcfe3abbea8
Author: Campbell Barton
Date: Sun Jul 1 08:26:48 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB0d31ab362e6dae2f22c36d1016643dcfe3abbea8
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.
===================================================================
M source/blender/draw/modes/object_mode.c
===================================================================
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) {
More information about the Bf-blender-cvs
mailing list