Blender
V3.3
|
#include <string.h>
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
#include "DNA_armature_types.h"
#include "DNA_object_types.h"
#include "BKE_action.h"
#include "BKE_armature.h"
#include "BKE_context.h"
#include "DEG_depsgraph.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "WM_api.h"
#include "WM_types.h"
#include "ED_armature.h"
#include "ED_outliner.h"
#include "ED_screen.h"
#include "UI_interface.h"
#include "UI_resources.h"
#include "armature_intern.h"
Go to the source code of this file.
Classes | |
struct | tSortActionGroup |
Typedefs | |
typedef struct tSortActionGroup | tSortActionGroup |
Implementation of Bone Groups operators and editing API's.
Definition in file pose_group.c.
typedef struct tSortActionGroup tSortActionGroup |
Definition at line 369 of file pose_group.c.
References tSortActionGroup::agrp, and bActionGroup::name.
Referenced by group_sort_exec().
|
static |
Definition at line 290 of file pose_group.c.
References bPose::active_group, bPose::agroups, BLI_findlink(), BLI_listbase_link_move(), C, bPose::chanbase, ED_pose_object_from_context(), ELEM, ListBase::first, NC_OBJECT, ND_POSE, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, Object::pose, wmOperator::ptr, RNA_enum_get(), and WM_event_add_notifier().
Referenced by POSE_OT_group_move().
|
static |
Definition at line 377 of file pose_group.c.
References bPose::active_group, bPose::agroups, BLI_addtail(), BLI_assert, BLI_listbase_clear(), BLI_listbase_count(), C, bPose::chanbase, compare_agroup(), DEG_id_tag_update(), ED_pose_object_from_context(), ELEM, ListBase::first, Object::id, ID_RECALC_COPY_ON_WRITE, if(), MEM_freeN, MEM_mallocN, NC_OBJECT, ND_POSE, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, Object::pose, and WM_event_add_notifier().
Referenced by POSE_OT_group_sort().
|
static |
Definition at line 58 of file pose_group.c.
References BKE_pose_add_group(), C, ED_pose_object_from_context(), ELEM, NC_OBJECT, ND_POSE, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, Object::pose, and WM_event_add_notifier().
Referenced by POSE_OT_group_add().
|
static |
Definition at line 187 of file pose_group.c.
References bPose::active_group, BKE_pose_add_group(), C, DEG_id_tag_update(), ED_pose_object_from_context(), ELEM, FOREACH_PCHAN_SELECTED_IN_OBJECT_BEGIN, FOREACH_PCHAN_SELECTED_IN_OBJECT_END, Object::id, ID_RECALC_COPY_ON_WRITE, NC_OBJECT, ND_POSE, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, Object::pose, wmOperator::ptr, RNA_int_get(), and WM_event_add_notifier().
Referenced by POSE_OT_group_assign().
|
static |
Definition at line 502 of file pose_group.c.
References C, Object::data, DEG_id_tag_update(), ED_outliner_select_sync_from_pose_bone_tag(), ED_pose_object_from_context(), ELEM, bArmature::id, ID_RECALC_SELECT, NC_OBJECT, ND_POSE, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, Object::pose, pose_group_select(), and WM_event_add_notifier().
Referenced by POSE_OT_group_deselect().
Definition at line 42 of file pose_group.c.
References C, CTX_wm_operator_poll_msg_set(), ED_operator_posemode_context(), ED_pose_object_from_context(), and ID_IS_OVERRIDE_LIBRARY.
Referenced by POSE_OT_group_add(), POSE_OT_group_assign(), POSE_OT_group_move(), POSE_OT_group_remove(), POSE_OT_group_sort(), and POSE_OT_group_unassign().
|
static |
Definition at line 91 of file pose_group.c.
References bPose::active_group, BKE_pose_remove_group_index(), C, DEG_id_tag_update(), ED_pose_object_from_context(), ELEM, Object::id, ID_RECALC_COPY_ON_WRITE, NC_OBJECT, ND_POSE, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, Object::pose, and WM_event_add_notifier().
Referenced by POSE_OT_group_remove().
Definition at line 446 of file pose_group.c.
References bPose::active_group, BONE_SELECTED, BONE_UNSELECTABLE, FOREACH_PCHAN_VISIBLE_IN_OBJECT_BEGIN, FOREACH_PCHAN_VISIBLE_IN_OBJECT_END, Object::pose, and select().
Referenced by pose_group_deselect_exec(), and pose_group_select_exec().
|
static |
Definition at line 467 of file pose_group.c.
References C, Object::data, DEG_id_tag_update(), ED_outliner_select_sync_from_pose_bone_tag(), ED_pose_object_from_context(), ELEM, bArmature::id, ID_RECALC_SELECT, NC_OBJECT, ND_POSE, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, Object::pose, pose_group_select(), and WM_event_add_notifier().
Referenced by POSE_OT_group_select().
|
static |
Definition at line 245 of file pose_group.c.
References C, DEG_id_tag_update(), ED_pose_object_from_context(), ELEM, FOREACH_PCHAN_SELECTED_IN_OBJECT_BEGIN, FOREACH_PCHAN_SELECTED_IN_OBJECT_END, Object::id, ID_RECALC_COPY_ON_WRITE, NC_OBJECT, ND_POSE, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, Object::pose, and WM_event_add_notifier().
Referenced by POSE_OT_group_unassign().
|
static |
Definition at line 128 of file pose_group.c.
References bPose::active_group, bPose::agroups, BLI_listbase_count(), C, ED_pose_object_from_context(), ELEM, wmOperatorType::exec, ListBase::first, wmOperator::idname, bActionGroup::name, wmOperatorType::name, bActionGroup::next, NULL, OPERATOR_CANCELLED, OPERATOR_INTERFACE, Object::pose, wmOperator::ptr, RNA_int_set(), RNA_property_int_get(), RNA_property_is_set(), RNA_struct_find_property(), wmOperator::type, UI_popup_menu_begin(), UI_popup_menu_end(), UI_popup_menu_layout(), uiItemIntO(), and uiItemS().
Referenced by POSE_OT_group_assign().
void POSE_OT_group_add | ( | wmOperatorType * | ot | ) |
Definition at line 76 of file pose_group.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, pose_group_add_exec(), and pose_group_poll().
Referenced by ED_operatortypes_armature().
void POSE_OT_group_assign | ( | wmOperatorType * | ot | ) |
Definition at line 226 of file pose_group.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, pose_group_assign_exec(), pose_group_poll(), pose_groups_menu_invoke(), RNA_def_int(), and wmOperatorType::srna.
Referenced by ED_operatortypes_armature().
void POSE_OT_group_deselect | ( | wmOperatorType * | ot | ) |
Definition at line 522 of file pose_group.c.
References wmOperatorType::description, ED_operator_posemode_context(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, and pose_group_deselect_exec().
Referenced by ED_operatortypes_armature().
void POSE_OT_group_move | ( | wmOperatorType * | ot | ) |
Definition at line 334 of file pose_group.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, group_move_exec(), wmOperatorType::idname, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, pose_group_poll(), RNA_def_enum(), and wmOperatorType::srna.
Referenced by ED_operatortypes_armature().
void POSE_OT_group_remove | ( | wmOperatorType * | ot | ) |
Definition at line 110 of file pose_group.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, pose_group_poll(), and pose_group_remove_exec().
Referenced by ED_operatortypes_armature().
void POSE_OT_group_select | ( | wmOperatorType * | ot | ) |
Definition at line 487 of file pose_group.c.
References wmOperatorType::description, ED_operator_posemode_context(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, and pose_group_select_exec().
Referenced by ED_operatortypes_armature().
void POSE_OT_group_sort | ( | wmOperatorType * | ot | ) |
Definition at line 431 of file pose_group.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, group_sort_exec(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, and pose_group_poll().
Referenced by ED_operatortypes_armature().
void POSE_OT_group_unassign | ( | wmOperatorType * | ot | ) |
Definition at line 275 of file pose_group.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, pose_group_poll(), and pose_group_unassign_exec().
Referenced by ED_operatortypes_armature().