From 59672145a98f144a0d2eab059937d6d9bf3194ca Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Wed, 27 Jul 2005 10:37:20 +0000 Subject: Cleanup & goodies for rigging geeks! :) - PoseMode: Wkey menu, "Flip Left/Right Names". On selected bones, it flips the L/R tags in names, and calls the proper code to rename everything that's related (constraint targets, bone-childs, etc). - PoseMode: Shift+S snapmenu: snap cursor to selected now works - Outliner: select bones now correctly sets 'active' flag for bones, updating the UI as well. Also made sure you cannot select hidden bones in outliner. - 3DWindow: in PoseMode/EditMode draws name of active Bone too (with user option "Draw active object name" set. - Added the new Armature/PoseMode options in View3D pulldowns. Cleanup: - moved Pose code from editaction.c to poseobject.c - removed BSE_editaction.h and BSE_editaction_types.h, moved contents of it to BIF_editaction.h. One include per C file should be fine. :) I know the src/ structure would require more elaborated includes, but we don't have that now... --- source/blender/python/api2_2x/Bone.c | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) (limited to 'source/blender/python/api2_2x/Bone.c') diff --git a/source/blender/python/api2_2x/Bone.c b/source/blender/python/api2_2x/Bone.c index 6a80182faac..0d494e91ddf 100644 --- a/source/blender/python/api2_2x/Bone.c +++ b/source/blender/python/api2_2x/Bone.c @@ -33,20 +33,26 @@ struct ScrArea; /*keep me up here */ #include "Bone.h" /*This must come first */ -#include "BKE_main.h" -#include "BKE_global.h" +#include "MEM_guardedalloc.h" + +#include "DNA_object_types.h" +#include "DNA_ipo_types.h" + +#include "BLI_blenlib.h" +#include "BLI_arithb.h" + #include "BKE_armature.h" #include "BKE_action.h" +#include "BKE_global.h" +#include "BKE_main.h" #include "BKE_utildefines.h" -#include "BLI_blenlib.h" -#include "BLI_arithb.h" -#include "BSE_editaction.h" -#include "DNA_object_types.h" -#include "DNA_ipo_types.h" -#include "MEM_guardedalloc.h" -#include "gen_utils.h" + +#include "BIF_editaction.h" + #include "NLA.h" +#include "gen_utils.h" + //--------------------Python API function prototypes for the Bone module---- static PyObject *M_Bone_New( PyObject * self, PyObject * args ); -- cgit v1.2.3