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:
authorAlexander Gavrilov <angavrilov@gmail.com>2018-11-20 09:34:56 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-11-20 09:38:35 +0300
commitd227c58e3ec2020683d9b7e8280f5e48350fd1fd (patch)
tree8531da3080fce08e69fe4a492a85420c305c2fe2 /source/blender/editors/include
parent93f82698e759bb7b4aa999173433d2053cf99606 (diff)
UI: support jumping to target object/bone
Complex rigs are built from many bones (often overlapping) connected by constraints. When investigating or debugging such rigs one often wants to switch to the target of a constraint, or a parent bone, but it is difficult to do manually due to overlap confusion. This adds a right click menu option that automatically selects and makes the target object or bone active for UI fields where a suitable reference is readily available.
Diffstat (limited to 'source/blender/editors/include')
-rw-r--r--source/blender/editors/include/ED_object.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/include/ED_object.h b/source/blender/editors/include/ED_object.h
index 29047f02e5a..37b27c461ae 100644
--- a/source/blender/editors/include/ED_object.h
+++ b/source/blender/editors/include/ED_object.h
@@ -302,6 +302,11 @@ const struct EnumPropertyItem *ED_object_vgroup_selection_itemf_helper(
void ED_object_check_force_modifiers(
struct Main *bmain, struct Scene *scene, struct Object *object);
+struct Base *ED_object_find_first_by_data_id(struct ViewLayer *view_layer, struct ID *id);
+
+bool ED_object_jump_to_object(struct bContext *C, struct Object *ob);
+bool ED_object_jump_to_bone(struct bContext *C, struct Object *ob, const char *bone_name);
+
/* object_facemap_ops.c */
void ED_object_facemap_face_add(struct Object *ob, struct bFaceMap *fmap, int facenum);
void ED_object_facemap_face_remove(struct Object *ob, struct bFaceMap *fmap, int facenum);