diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-11-21 05:04:03 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-11-21 05:04:03 +0300 |
commit | 18593c7cd3ff3f63cec7115a5c8e0d8e51a7b784 (patch) | |
tree | 6c661163fe22572e784a9daa7ebc062ea2718289 /source/blender/editors/interface | |
parent | a86a1292f3ae9e303dddbf7c974790d58251e07b (diff) |
Cleanup: add reveal_hidden arg to jump-to API calls
Jumping to data shouldn't necessarily change hidden status
or visible layers.
Diffstat (limited to 'source/blender/editors/interface')
-rw-r--r-- | source/blender/editors/interface/interface_ops.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/editors/interface/interface_ops.c b/source/blender/editors/interface/interface_ops.c index 0b35961483e..cc609216e9a 100644 --- a/source/blender/editors/interface/interface_ops.c +++ b/source/blender/editors/interface/interface_ops.c @@ -855,12 +855,14 @@ static bool jump_to_target_ptr(bContext *C, PointerRNA ptr, const bool poll) ok = true; } else { + /* Make optional. */ + const bool reveal_hidden = true; /* Select and activate the target. */ if (target_type == &RNA_Bone) { - ok = ED_object_jump_to_bone(C, base->object, bone_name); + ok = ED_object_jump_to_bone(C, base->object, bone_name, reveal_hidden); } else if (target_type == &RNA_Object) { - ok = ED_object_jump_to_object(C, base->object); + ok = ED_object_jump_to_object(C, base->object, reveal_hidden); } else { BLI_assert(0); |