From 2e6a3710bba93cf2d6b86cf511a123068ead61bd Mon Sep 17 00:00:00 2001 From: Matt Ebb Date: Mon, 4 Aug 2008 11:47:17 +0000 Subject: * Armature hierarchy selection tools These are for use in pose mode or armature edit mode, to let you quickly traverse up and down a chain of bones. It's quite useful for bones that are in hard-to-click places. The tools are: *Select parent/child ( [ and ] ) selects the parent or child of the active bone, deselecting the original active bone * Extend select parent/child (shift [ and shift ] ) selects the parent or child of the active bone, adding to the selection Thanks to Joshua for reviewing this so promptly! PS. I'd like to use these [ and ] keys more widely in blender as consistent 'select next / previous' tools. I can imagine it being very useful for a lot of things like keyframes, nodes, mesh edges, etc. --- source/blender/include/BIF_editarmature.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'source/blender/include/BIF_editarmature.h') diff --git a/source/blender/include/BIF_editarmature.h b/source/blender/include/BIF_editarmature.h index da98eb3d4f1..13c16749612 100644 --- a/source/blender/include/BIF_editarmature.h +++ b/source/blender/include/BIF_editarmature.h @@ -108,7 +108,8 @@ void mouse_armature(void); void remake_editArmature(void); void selectconnected_armature(void); void selectconnected_posearmature(void); -void select_bone_parent(void); +void armature_select_hierarchy(short direction, short add_to_sel); + void setflag_armature(short mode); void unique_editbone_name (struct ListBase *ebones, char *name); @@ -143,6 +144,10 @@ void set_locks_armature_bones(short lock); #define BONESEL_NOSEL 0x80000000 /* Indicates a negative number */ +/* used in bone_select_hierachy() */ +#define BONE_SELECT_PARENT 0 +#define BONE_SELECT_CHILD 1 + #endif -- cgit v1.2.3