2011-02-23 10:52:22 +00:00
|
|
|
/*
|
2009-01-05 15:19:31 +00:00
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
2018-06-01 18:19:39 +02:00
|
|
|
* of the License, or (at your option) any later version.
|
2009-01-05 15:19:31 +00:00
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software Foundation,
|
2010-02-12 13:34:04 +00:00
|
|
|
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2009-01-05 15:19:31 +00:00
|
|
|
*
|
|
|
|
* The Original Code is Copyright (C) 2009 Blender Foundation.
|
|
|
|
* All rights reserved.
|
|
|
|
*/
|
2011-02-27 20:29:51 +00:00
|
|
|
|
2019-02-18 08:08:12 +11:00
|
|
|
/** \file
|
|
|
|
* \ingroup edarmature
|
2011-02-27 20:29:51 +00:00
|
|
|
*/
|
|
|
|
|
2020-08-07 09:50:34 +02:00
|
|
|
#pragma once
|
2009-01-05 15:19:31 +00:00
|
|
|
|
|
|
|
/* internal exports only */
|
2009-02-01 19:53:24 +00:00
|
|
|
struct wmOperatorType;
|
2009-01-05 15:19:31 +00:00
|
|
|
|
2017-11-09 15:44:56 -02:00
|
|
|
struct Base;
|
2019-01-28 21:08:24 +11:00
|
|
|
struct Object;
|
|
|
|
struct Scene;
|
|
|
|
struct bContext;
|
2010-02-19 11:42:21 +00:00
|
|
|
struct bPoseChannel;
|
|
|
|
|
Code Maintenance - Splitting up Armature/Pose Editing Files
This commit splits editarmature.c and poseobject.c into several files, such that
certain types of functionality are (mostly) self-contained within particular
files (instead of being mixed in with other functionality in a large file).
In particular, this was done so that:
1) Armature EditMode tools are now in the armature_*.c files only, and Pose Mode
tools in pose_*.c files only.
- In one or two cases, this hasn't been possible as the two modes rely on
much of the same shared infrastructure.
2) The "clear loc/rot/scale" operators and pose show/hide are no longer housed
in editarmature.c
3) Selection operators, Transform operators, structural (add/delete) operators,
and supporting utilities for the modes (enter/exit/roll-calculations) are not
all interleaved in an ad-hoc manner
Notes:
* I've tried to ensure that the history of the new files has been maintained by
doing
svn copy {editarmature.c/poseobject.c} {armature_*.c/pose_*.c}
Unfortunately, this means that the diffs are a bit messy.
* There should be no functional/logic changes here. Just code moving around and
cosmetic comment tweaks where needed.
* #includes have largely been untouched for now, but could be cleaned up later
* CMake changes untested, but should work in theory.
2013-02-27 23:34:29 +00:00
|
|
|
struct Bone;
|
2019-01-28 21:08:24 +11:00
|
|
|
struct EditBone;
|
|
|
|
struct bArmature;
|
2010-02-19 11:42:21 +00:00
|
|
|
|
|
|
|
struct LinkData;
|
2019-01-28 21:08:24 +11:00
|
|
|
struct ListBase;
|
2010-02-19 11:42:21 +00:00
|
|
|
|
|
|
|
/* ******************************************************* */
|
Code Maintenance - Splitting up Armature/Pose Editing Files
This commit splits editarmature.c and poseobject.c into several files, such that
certain types of functionality are (mostly) self-contained within particular
files (instead of being mixed in with other functionality in a large file).
In particular, this was done so that:
1) Armature EditMode tools are now in the armature_*.c files only, and Pose Mode
tools in pose_*.c files only.
- In one or two cases, this hasn't been possible as the two modes rely on
much of the same shared infrastructure.
2) The "clear loc/rot/scale" operators and pose show/hide are no longer housed
in editarmature.c
3) Selection operators, Transform operators, structural (add/delete) operators,
and supporting utilities for the modes (enter/exit/roll-calculations) are not
all interleaved in an ad-hoc manner
Notes:
* I've tried to ensure that the history of the new files has been maintained by
doing
svn copy {editarmature.c/poseobject.c} {armature_*.c/pose_*.c}
Unfortunately, this means that the diffs are a bit messy.
* There should be no functional/logic changes here. Just code moving around and
cosmetic comment tweaks where needed.
* #includes have largely been untouched for now, but could be cleaned up later
* CMake changes untested, but should work in theory.
2013-02-27 23:34:29 +00:00
|
|
|
/* Armature EditMode Operators */
|
2009-02-18 02:13:36 +00:00
|
|
|
void ARMATURE_OT_bone_primitive_add(struct wmOperatorType *ot);
|
2009-07-21 10:18:08 +00:00
|
|
|
|
2009-07-25 05:11:28 +00:00
|
|
|
void ARMATURE_OT_align(struct wmOperatorType *ot);
|
2009-02-06 10:48:00 +00:00
|
|
|
void ARMATURE_OT_calculate_roll(struct wmOperatorType *ot);
|
2016-03-03 11:45:43 +11:00
|
|
|
void ARMATURE_OT_roll_clear(struct wmOperatorType *ot);
|
2009-02-08 23:41:21 +00:00
|
|
|
void ARMATURE_OT_switch_direction(struct wmOperatorType *ot);
|
2009-07-21 10:18:08 +00:00
|
|
|
|
2010-10-15 03:24:47 +00:00
|
|
|
void ARMATURE_OT_subdivide(struct wmOperatorType *ot);
|
2009-07-21 10:18:08 +00:00
|
|
|
|
2009-02-10 06:12:35 +00:00
|
|
|
void ARMATURE_OT_parent_set(struct wmOperatorType *ot);
|
|
|
|
void ARMATURE_OT_parent_clear(struct wmOperatorType *ot);
|
2009-07-21 10:18:08 +00:00
|
|
|
|
2009-11-29 22:16:29 +00:00
|
|
|
void ARMATURE_OT_select_all(struct wmOperatorType *ot);
|
2013-11-05 21:47:35 +00:00
|
|
|
void ARMATURE_OT_select_mirror(struct wmOperatorType *ot);
|
2013-07-19 10:51:54 +00:00
|
|
|
void ARMATURE_OT_select_more(struct wmOperatorType *ot);
|
|
|
|
void ARMATURE_OT_select_less(struct wmOperatorType *ot);
|
2009-02-16 17:18:24 +00:00
|
|
|
void ARMATURE_OT_select_hierarchy(struct wmOperatorType *ot);
|
2020-03-31 14:39:41 +11:00
|
|
|
void ARMATURE_OT_select_linked_pick(struct wmOperatorType *ot);
|
2009-03-29 02:15:13 +00:00
|
|
|
void ARMATURE_OT_select_linked(struct wmOperatorType *ot);
|
2012-04-29 18:23:33 +00:00
|
|
|
void ARMATURE_OT_select_similar(struct wmOperatorType *ot);
|
2013-11-22 08:36:48 +11:00
|
|
|
void ARMATURE_OT_shortest_path_pick(struct wmOperatorType *ot);
|
2009-07-21 10:18:08 +00:00
|
|
|
|
2009-03-29 02:15:13 +00:00
|
|
|
void ARMATURE_OT_delete(struct wmOperatorType *ot);
|
2015-06-13 03:20:07 +10:00
|
|
|
void ARMATURE_OT_dissolve(struct wmOperatorType *ot);
|
2009-07-25 05:11:28 +00:00
|
|
|
void ARMATURE_OT_duplicate(struct wmOperatorType *ot);
|
2015-03-19 17:57:17 +11:00
|
|
|
void ARMATURE_OT_symmetrize(struct wmOperatorType *ot);
|
2009-02-25 13:48:39 +00:00
|
|
|
void ARMATURE_OT_extrude(struct wmOperatorType *ot);
|
2010-09-19 13:18:05 +00:00
|
|
|
void ARMATURE_OT_hide(struct wmOperatorType *ot);
|
|
|
|
void ARMATURE_OT_reveal(struct wmOperatorType *ot);
|
2009-02-25 13:48:39 +00:00
|
|
|
void ARMATURE_OT_click_extrude(struct wmOperatorType *ot);
|
2009-07-25 05:11:28 +00:00
|
|
|
void ARMATURE_OT_fill(struct wmOperatorType *ot);
|
|
|
|
void ARMATURE_OT_separate(struct wmOperatorType *ot);
|
2013-10-29 00:10:03 +00:00
|
|
|
void ARMATURE_OT_split(struct wmOperatorType *ot);
|
2009-02-06 01:39:55 +00:00
|
|
|
|
2009-07-24 13:02:16 +00:00
|
|
|
void ARMATURE_OT_autoside_names(struct wmOperatorType *ot);
|
|
|
|
void ARMATURE_OT_flip_names(struct wmOperatorType *ot);
|
|
|
|
|
2011-01-11 21:12:48 +00:00
|
|
|
void ARMATURE_OT_layers_show_all(struct wmOperatorType *ot);
|
2009-07-26 11:01:56 +00:00
|
|
|
void ARMATURE_OT_armature_layers(struct wmOperatorType *ot);
|
|
|
|
void ARMATURE_OT_bone_layers(struct wmOperatorType *ot);
|
|
|
|
|
2009-07-21 10:18:08 +00:00
|
|
|
/* ******************************************************* */
|
|
|
|
/* Pose-Mode Operators */
|
2009-02-01 19:53:24 +00:00
|
|
|
void POSE_OT_hide(struct wmOperatorType *ot);
|
2009-02-12 03:48:56 +00:00
|
|
|
void POSE_OT_reveal(struct wmOperatorType *ot);
|
2009-07-21 10:18:08 +00:00
|
|
|
|
2010-02-19 15:34:26 +00:00
|
|
|
void POSE_OT_armature_apply(struct wmOperatorType *ot);
|
|
|
|
void POSE_OT_visual_transform_apply(struct wmOperatorType *ot);
|
2009-07-25 05:11:28 +00:00
|
|
|
|
2009-02-05 05:13:08 +00:00
|
|
|
void POSE_OT_rot_clear(struct wmOperatorType *ot);
|
|
|
|
void POSE_OT_loc_clear(struct wmOperatorType *ot);
|
|
|
|
void POSE_OT_scale_clear(struct wmOperatorType *ot);
|
2011-01-11 11:09:37 +00:00
|
|
|
void POSE_OT_transforms_clear(struct wmOperatorType *ot);
|
2011-08-15 13:24:53 +00:00
|
|
|
void POSE_OT_user_transforms_clear(struct wmOperatorType *ot);
|
2009-07-21 10:18:08 +00:00
|
|
|
|
2009-07-21 13:12:40 +00:00
|
|
|
void POSE_OT_copy(struct wmOperatorType *ot);
|
|
|
|
void POSE_OT_paste(struct wmOperatorType *ot);
|
|
|
|
|
2009-11-29 22:16:29 +00:00
|
|
|
void POSE_OT_select_all(struct wmOperatorType *ot);
|
2009-02-11 16:17:34 +00:00
|
|
|
void POSE_OT_select_parent(struct wmOperatorType *ot);
|
2009-02-16 17:18:24 +00:00
|
|
|
void POSE_OT_select_hierarchy(struct wmOperatorType *ot);
|
2009-03-29 02:15:13 +00:00
|
|
|
void POSE_OT_select_linked(struct wmOperatorType *ot);
|
2020-04-27 15:41:22 +02:00
|
|
|
void POSE_OT_select_linked_pick(struct wmOperatorType *ot);
|
2009-07-08 15:34:41 +00:00
|
|
|
void POSE_OT_select_constraint_target(struct wmOperatorType *ot);
|
2010-01-25 10:16:36 +00:00
|
|
|
void POSE_OT_select_grouped(struct wmOperatorType *ot);
|
2013-11-17 05:18:10 +11:00
|
|
|
void POSE_OT_select_mirror(struct wmOperatorType *ot);
|
2009-01-05 15:19:31 +00:00
|
|
|
|
2009-07-21 10:18:08 +00:00
|
|
|
void POSE_OT_group_add(struct wmOperatorType *ot);
|
|
|
|
void POSE_OT_group_remove(struct wmOperatorType *ot);
|
2011-07-07 04:31:53 +00:00
|
|
|
void POSE_OT_group_move(struct wmOperatorType *ot);
|
|
|
|
void POSE_OT_group_sort(struct wmOperatorType *ot);
|
2009-07-21 10:18:08 +00:00
|
|
|
void POSE_OT_group_assign(struct wmOperatorType *ot);
|
|
|
|
void POSE_OT_group_unassign(struct wmOperatorType *ot);
|
2010-07-14 03:19:19 +00:00
|
|
|
void POSE_OT_group_select(struct wmOperatorType *ot);
|
|
|
|
void POSE_OT_group_deselect(struct wmOperatorType *ot);
|
2009-07-21 10:18:08 +00:00
|
|
|
|
2009-07-24 13:02:16 +00:00
|
|
|
void POSE_OT_paths_calculate(struct wmOperatorType *ot);
|
2012-05-06 04:18:13 +00:00
|
|
|
void POSE_OT_paths_update(struct wmOperatorType *ot);
|
2009-07-24 13:02:16 +00:00
|
|
|
void POSE_OT_paths_clear(struct wmOperatorType *ot);
|
2018-08-20 16:12:37 +12:00
|
|
|
void POSE_OT_paths_range_update(struct wmOperatorType *ot);
|
2009-07-24 13:02:16 +00:00
|
|
|
|
|
|
|
void POSE_OT_autoside_names(struct wmOperatorType *ot);
|
|
|
|
void POSE_OT_flip_names(struct wmOperatorType *ot);
|
|
|
|
|
2011-07-09 01:14:07 +00:00
|
|
|
void POSE_OT_rotation_mode_set(struct wmOperatorType *ot);
|
|
|
|
|
2010-01-25 10:16:36 +00:00
|
|
|
void POSE_OT_quaternions_flip(struct wmOperatorType *ot);
|
|
|
|
|
2009-07-26 11:01:56 +00:00
|
|
|
void POSE_OT_bone_layers(struct wmOperatorType *ot);
|
|
|
|
|
2010-02-19 11:42:21 +00:00
|
|
|
/* ******************************************************* */
|
|
|
|
/* Pose Tool Utilities (for PoseLib, Pose Sliding, etc.) */
|
2013-02-28 00:01:20 +00:00
|
|
|
/* pose_utils.c */
|
2010-02-19 11:42:21 +00:00
|
|
|
|
|
|
|
/* Temporary data linking PoseChannels with the F-Curves they affect */
|
|
|
|
typedef struct tPChanFCurveLink {
|
2019-04-17 06:17:24 +02:00
|
|
|
struct tPChanFCurveLink *next, *prev;
|
|
|
|
|
|
|
|
/** Object this Pose Channel belongs to. */
|
|
|
|
struct Object *ob;
|
|
|
|
|
|
|
|
/** F-Curves for this PoseChannel (wrapped with LinkData) */
|
|
|
|
ListBase fcurves;
|
|
|
|
/** Pose Channel which data is attached to */
|
|
|
|
struct bPoseChannel *pchan;
|
|
|
|
|
|
|
|
/** RNA Path to this Pose Channel (needs to be freed when we're done) */
|
|
|
|
char *pchan_path;
|
|
|
|
|
|
|
|
/** transform values at start of operator (to be restored before each modal step) */
|
|
|
|
float oldloc[3];
|
|
|
|
float oldrot[3];
|
|
|
|
float oldscale[3];
|
|
|
|
float oldquat[4];
|
|
|
|
float oldangle;
|
|
|
|
float oldaxis[3];
|
|
|
|
|
|
|
|
/** old bbone values (to be restored along with the transform properties) */
|
|
|
|
float roll1, roll2;
|
|
|
|
/** (NOTE: we haven't renamed these this time, as their names are already long enough) */
|
2019-04-23 13:15:30 +03:00
|
|
|
float curve_in_x, curve_in_y;
|
|
|
|
float curve_out_x, curve_out_y;
|
2019-04-17 06:17:24 +02:00
|
|
|
float ease1, ease2;
|
2019-04-20 18:06:31 +03:00
|
|
|
float scale_in_x, scale_in_y;
|
|
|
|
float scale_out_x, scale_out_y;
|
2019-04-17 06:17:24 +02:00
|
|
|
|
|
|
|
/** copy of custom properties at start of operator (to be restored before each modal step) */
|
|
|
|
struct IDProperty *oldprops;
|
2010-02-19 11:42:21 +00:00
|
|
|
} tPChanFCurveLink;
|
|
|
|
|
|
|
|
/* ----------- */
|
|
|
|
|
2018-10-19 19:08:12 -03:00
|
|
|
struct Object *poseAnim_object_get(struct Object *ob_);
|
|
|
|
void poseAnim_mapping_get(struct bContext *C, ListBase *pfLinks);
|
2010-02-19 11:42:21 +00:00
|
|
|
void poseAnim_mapping_free(ListBase *pfLinks);
|
|
|
|
|
|
|
|
void poseAnim_mapping_refresh(struct bContext *C, struct Scene *scene, struct Object *ob);
|
|
|
|
void poseAnim_mapping_reset(ListBase *pfLinks);
|
2019-04-17 06:17:24 +02:00
|
|
|
void poseAnim_mapping_autoKeyframe(struct bContext *C,
|
|
|
|
struct Scene *scene,
|
|
|
|
ListBase *pfLinks,
|
|
|
|
float cframe);
|
2010-02-19 11:42:21 +00:00
|
|
|
|
2011-11-05 11:04:28 +00:00
|
|
|
LinkData *poseAnim_mapping_getNextFCurve(ListBase *fcuLinks, LinkData *prev, const char *path);
|
2010-02-19 11:42:21 +00:00
|
|
|
|
2009-07-21 10:18:08 +00:00
|
|
|
/* ******************************************************* */
|
2009-04-15 03:22:22 +00:00
|
|
|
/* PoseLib */
|
2013-02-28 00:01:20 +00:00
|
|
|
/* pose_lib.c */
|
2009-09-19 00:18:42 +00:00
|
|
|
|
2011-02-16 00:17:22 +00:00
|
|
|
void POSELIB_OT_new(struct wmOperatorType *ot);
|
|
|
|
void POSELIB_OT_unlink(struct wmOperatorType *ot);
|
|
|
|
|
2012-07-03 17:20:21 +00:00
|
|
|
void POSELIB_OT_action_sanitize(struct wmOperatorType *ot);
|
2011-02-16 11:28:25 +00:00
|
|
|
|
2009-04-15 03:22:22 +00:00
|
|
|
void POSELIB_OT_pose_add(struct wmOperatorType *ot);
|
|
|
|
void POSELIB_OT_pose_remove(struct wmOperatorType *ot);
|
|
|
|
void POSELIB_OT_pose_rename(struct wmOperatorType *ot);
|
2016-09-16 15:07:23 +02:00
|
|
|
void POSELIB_OT_pose_move(struct wmOperatorType *ot);
|
2011-02-16 00:17:22 +00:00
|
|
|
|
2009-04-15 12:04:10 +00:00
|
|
|
void POSELIB_OT_browse_interactive(struct wmOperatorType *ot);
|
2011-02-16 06:18:20 +00:00
|
|
|
void POSELIB_OT_apply_pose(struct wmOperatorType *ot);
|
2009-04-15 03:22:22 +00:00
|
|
|
|
2009-09-19 00:18:42 +00:00
|
|
|
/* ******************************************************* */
|
|
|
|
/* Pose Sliding Tools */
|
2013-02-28 00:01:20 +00:00
|
|
|
/* pose_slide.c */
|
2009-09-19 00:18:42 +00:00
|
|
|
|
|
|
|
void POSE_OT_push(struct wmOperatorType *ot);
|
|
|
|
void POSE_OT_relax(struct wmOperatorType *ot);
|
2019-05-07 17:34:28 +02:00
|
|
|
void POSE_OT_push_rest(struct wmOperatorType *ot);
|
|
|
|
void POSE_OT_relax_rest(struct wmOperatorType *ot);
|
2009-09-19 00:18:42 +00:00
|
|
|
void POSE_OT_breakdown(struct wmOperatorType *ot);
|
2011-03-24 03:02:34 +00:00
|
|
|
|
|
|
|
void POSE_OT_propagate(struct wmOperatorType *ot);
|
2009-09-19 00:18:42 +00:00
|
|
|
|
2009-07-21 10:18:08 +00:00
|
|
|
/* ******************************************************* */
|
Code Maintenance - Splitting up Armature/Pose Editing Files
This commit splits editarmature.c and poseobject.c into several files, such that
certain types of functionality are (mostly) self-contained within particular
files (instead of being mixed in with other functionality in a large file).
In particular, this was done so that:
1) Armature EditMode tools are now in the armature_*.c files only, and Pose Mode
tools in pose_*.c files only.
- In one or two cases, this hasn't been possible as the two modes rely on
much of the same shared infrastructure.
2) The "clear loc/rot/scale" operators and pose show/hide are no longer housed
in editarmature.c
3) Selection operators, Transform operators, structural (add/delete) operators,
and supporting utilities for the modes (enter/exit/roll-calculations) are not
all interleaved in an ad-hoc manner
Notes:
* I've tried to ensure that the history of the new files has been maintained by
doing
svn copy {editarmature.c/poseobject.c} {armature_*.c/pose_*.c}
Unfortunately, this means that the diffs are a bit messy.
* There should be no functional/logic changes here. Just code moving around and
cosmetic comment tweaks where needed.
* #includes have largely been untouched for now, but could be cleaned up later
* CMake changes untested, but should work in theory.
2013-02-27 23:34:29 +00:00
|
|
|
/* Various Armature Edit/Pose Editing API's */
|
|
|
|
|
2019-04-29 19:29:41 +10:00
|
|
|
/* Ideally, many of these defines would not be needed as everything would be strictly
|
|
|
|
* self-contained within each file,
|
|
|
|
* but some tools still have a bit of overlap which makes things messy -- Feb 2013
|
Code Maintenance - Splitting up Armature/Pose Editing Files
This commit splits editarmature.c and poseobject.c into several files, such that
certain types of functionality are (mostly) self-contained within particular
files (instead of being mixed in with other functionality in a large file).
In particular, this was done so that:
1) Armature EditMode tools are now in the armature_*.c files only, and Pose Mode
tools in pose_*.c files only.
- In one or two cases, this hasn't been possible as the two modes rely on
much of the same shared infrastructure.
2) The "clear loc/rot/scale" operators and pose show/hide are no longer housed
in editarmature.c
3) Selection operators, Transform operators, structural (add/delete) operators,
and supporting utilities for the modes (enter/exit/roll-calculations) are not
all interleaved in an ad-hoc manner
Notes:
* I've tried to ensure that the history of the new files has been maintained by
doing
svn copy {editarmature.c/poseobject.c} {armature_*.c/pose_*.c}
Unfortunately, this means that the diffs are a bit messy.
* There should be no functional/logic changes here. Just code moving around and
cosmetic comment tweaks where needed.
* #includes have largely been untouched for now, but could be cleaned up later
* CMake changes untested, but should work in theory.
2013-02-27 23:34:29 +00:00
|
|
|
*/
|
2009-03-20 18:00:51 +00:00
|
|
|
|
2020-10-02 15:36:42 +02:00
|
|
|
struct EditBone *make_boneList(struct ListBase *edbo,
|
|
|
|
struct ListBase *bones,
|
|
|
|
struct Bone *actBone);
|
2009-03-17 21:44:58 +00:00
|
|
|
|
|
|
|
/* duplicate method */
|
|
|
|
void preEditBoneDuplicate(struct ListBase *editbones);
|
2016-03-09 12:22:09 +11:00
|
|
|
void postEditBoneDuplicate(struct ListBase *editbones, struct Object *ob);
|
2020-09-04 20:59:13 +02:00
|
|
|
struct EditBone *duplicateEditBone(struct EditBone *cur_bone,
|
2019-04-17 06:17:24 +02:00
|
|
|
const char *name,
|
|
|
|
struct ListBase *editbones,
|
|
|
|
struct Object *ob);
|
2009-03-17 21:44:58 +00:00
|
|
|
|
Code Maintenance - Splitting up Armature/Pose Editing Files
This commit splits editarmature.c and poseobject.c into several files, such that
certain types of functionality are (mostly) self-contained within particular
files (instead of being mixed in with other functionality in a large file).
In particular, this was done so that:
1) Armature EditMode tools are now in the armature_*.c files only, and Pose Mode
tools in pose_*.c files only.
- In one or two cases, this hasn't been possible as the two modes rely on
much of the same shared infrastructure.
2) The "clear loc/rot/scale" operators and pose show/hide are no longer housed
in editarmature.c
3) Selection operators, Transform operators, structural (add/delete) operators,
and supporting utilities for the modes (enter/exit/roll-calculations) are not
all interleaved in an ad-hoc manner
Notes:
* I've tried to ensure that the history of the new files has been maintained by
doing
svn copy {editarmature.c/poseobject.c} {armature_*.c/pose_*.c}
Unfortunately, this means that the diffs are a bit messy.
* There should be no functional/logic changes here. Just code moving around and
cosmetic comment tweaks where needed.
* #includes have largely been untouched for now, but could be cleaned up later
* CMake changes untested, but should work in theory.
2013-02-27 23:34:29 +00:00
|
|
|
/* duplicate method (cross objects) */
|
2009-03-17 21:44:58 +00:00
|
|
|
/* editbones is the target list */
|
2020-09-04 20:59:13 +02:00
|
|
|
struct EditBone *duplicateEditBoneObjects(struct EditBone *cur_bone,
|
2019-04-17 06:17:24 +02:00
|
|
|
const char *name,
|
|
|
|
struct ListBase *editbones,
|
|
|
|
struct Object *src_ob,
|
|
|
|
struct Object *dst_ob);
|
2009-03-17 21:44:58 +00:00
|
|
|
|
2020-10-02 15:36:42 +02:00
|
|
|
struct EditBone *add_points_bone(struct Object *obedit, float head[3], float tail[3]);
|
Code Maintenance - Splitting up Armature/Pose Editing Files
This commit splits editarmature.c and poseobject.c into several files, such that
certain types of functionality are (mostly) self-contained within particular
files (instead of being mixed in with other functionality in a large file).
In particular, this was done so that:
1) Armature EditMode tools are now in the armature_*.c files only, and Pose Mode
tools in pose_*.c files only.
- In one or two cases, this hasn't been possible as the two modes rely on
much of the same shared infrastructure.
2) The "clear loc/rot/scale" operators and pose show/hide are no longer housed
in editarmature.c
3) Selection operators, Transform operators, structural (add/delete) operators,
and supporting utilities for the modes (enter/exit/roll-calculations) are not
all interleaved in an ad-hoc manner
Notes:
* I've tried to ensure that the history of the new files has been maintained by
doing
svn copy {editarmature.c/poseobject.c} {armature_*.c/pose_*.c}
Unfortunately, this means that the diffs are a bit messy.
* There should be no functional/logic changes here. Just code moving around and
cosmetic comment tweaks where needed.
* #includes have largely been untouched for now, but could be cleaned up later
* CMake changes untested, but should work in theory.
2013-02-27 23:34:29 +00:00
|
|
|
void bone_free(struct bArmature *arm, struct EditBone *bone);
|
|
|
|
|
|
|
|
void armature_tag_select_mirrored(struct bArmature *arm);
|
2015-06-13 03:20:07 +10:00
|
|
|
void armature_select_mirrored_ex(struct bArmature *arm, const int flag);
|
Code Maintenance - Splitting up Armature/Pose Editing Files
This commit splits editarmature.c and poseobject.c into several files, such that
certain types of functionality are (mostly) self-contained within particular
files (instead of being mixed in with other functionality in a large file).
In particular, this was done so that:
1) Armature EditMode tools are now in the armature_*.c files only, and Pose Mode
tools in pose_*.c files only.
- In one or two cases, this hasn't been possible as the two modes rely on
much of the same shared infrastructure.
2) The "clear loc/rot/scale" operators and pose show/hide are no longer housed
in editarmature.c
3) Selection operators, Transform operators, structural (add/delete) operators,
and supporting utilities for the modes (enter/exit/roll-calculations) are not
all interleaved in an ad-hoc manner
Notes:
* I've tried to ensure that the history of the new files has been maintained by
doing
svn copy {editarmature.c/poseobject.c} {armature_*.c/pose_*.c}
Unfortunately, this means that the diffs are a bit messy.
* There should be no functional/logic changes here. Just code moving around and
cosmetic comment tweaks where needed.
* #includes have largely been untouched for now, but could be cleaned up later
* CMake changes untested, but should work in theory.
2013-02-27 23:34:29 +00:00
|
|
|
void armature_select_mirrored(struct bArmature *arm);
|
|
|
|
void armature_tag_unselect(struct bArmature *arm);
|
|
|
|
|
2020-10-02 15:36:42 +02:00
|
|
|
struct EditBone *ED_armature_pick_ebone(struct bContext *C,
|
|
|
|
const int xy[2],
|
|
|
|
bool findunsel,
|
|
|
|
struct Base **r_base);
|
2020-04-03 15:45:57 +11:00
|
|
|
struct bPoseChannel *ED_armature_pick_pchan(struct bContext *C,
|
|
|
|
const int xy[2],
|
|
|
|
bool findunsel,
|
|
|
|
struct Base **r_base);
|
|
|
|
struct Bone *ED_armature_pick_bone(struct bContext *C,
|
|
|
|
const int xy[2],
|
|
|
|
bool findunsel,
|
|
|
|
struct Base **r_base);
|
|
|
|
|
|
|
|
struct EditBone *ED_armature_pick_ebone_from_selectbuffer(struct Base **bases,
|
|
|
|
uint bases_len,
|
|
|
|
const uint *buffer,
|
|
|
|
short hits,
|
|
|
|
bool findunsel,
|
|
|
|
bool do_nearest,
|
|
|
|
struct Base **r_base);
|
|
|
|
struct bPoseChannel *ED_armature_pick_pchan_from_selectbuffer(struct Base **bases,
|
|
|
|
uint bases_len,
|
|
|
|
const uint *buffer,
|
|
|
|
short hits,
|
|
|
|
bool findunsel,
|
|
|
|
bool do_nearest,
|
|
|
|
struct Base **r_base);
|
|
|
|
struct Bone *ED_armature_pick_bone_from_selectbuffer(struct Base **bases,
|
|
|
|
uint bases_len,
|
|
|
|
const uint *buffer,
|
|
|
|
short hits,
|
|
|
|
bool findunsel,
|
|
|
|
bool do_nearest,
|
|
|
|
struct Base **r_base);
|
Code Maintenance - Splitting up Armature/Pose Editing Files
This commit splits editarmature.c and poseobject.c into several files, such that
certain types of functionality are (mostly) self-contained within particular
files (instead of being mixed in with other functionality in a large file).
In particular, this was done so that:
1) Armature EditMode tools are now in the armature_*.c files only, and Pose Mode
tools in pose_*.c files only.
- In one or two cases, this hasn't been possible as the two modes rely on
much of the same shared infrastructure.
2) The "clear loc/rot/scale" operators and pose show/hide are no longer housed
in editarmature.c
3) Selection operators, Transform operators, structural (add/delete) operators,
and supporting utilities for the modes (enter/exit/roll-calculations) are not
all interleaved in an ad-hoc manner
Notes:
* I've tried to ensure that the history of the new files has been maintained by
doing
svn copy {editarmature.c/poseobject.c} {armature_*.c/pose_*.c}
Unfortunately, this means that the diffs are a bit messy.
* There should be no functional/logic changes here. Just code moving around and
cosmetic comment tweaks where needed.
* #includes have largely been untouched for now, but could be cleaned up later
* CMake changes untested, but should work in theory.
2013-02-27 23:34:29 +00:00
|
|
|
|
2019-04-17 06:17:24 +02:00
|
|
|
int bone_looper(struct Object *ob,
|
|
|
|
struct Bone *bone,
|
|
|
|
void *data,
|
Code Maintenance - Splitting up Armature/Pose Editing Files
This commit splits editarmature.c and poseobject.c into several files, such that
certain types of functionality are (mostly) self-contained within particular
files (instead of being mixed in with other functionality in a large file).
In particular, this was done so that:
1) Armature EditMode tools are now in the armature_*.c files only, and Pose Mode
tools in pose_*.c files only.
- In one or two cases, this hasn't been possible as the two modes rely on
much of the same shared infrastructure.
2) The "clear loc/rot/scale" operators and pose show/hide are no longer housed
in editarmature.c
3) Selection operators, Transform operators, structural (add/delete) operators,
and supporting utilities for the modes (enter/exit/roll-calculations) are not
all interleaved in an ad-hoc manner
Notes:
* I've tried to ensure that the history of the new files has been maintained by
doing
svn copy {editarmature.c/poseobject.c} {armature_*.c/pose_*.c}
Unfortunately, this means that the diffs are a bit messy.
* There should be no functional/logic changes here. Just code moving around and
cosmetic comment tweaks where needed.
* #includes have largely been untouched for now, but could be cleaned up later
* CMake changes untested, but should work in theory.
2013-02-27 23:34:29 +00:00
|
|
|
int (*bone_func)(struct Object *, struct Bone *, void *));
|