Blender V5.3
bone_collections.cc File Reference
#include <cstring>
#include "ANIM_armature.hh"
#include "ANIM_bone_collections.hh"
#include "DNA_ID.h"
#include "DNA_object_types.h"
#include "BLI_listbase.hh"
#include "BKE_action.hh"
#include "BKE_armature.hh"
#include "BKE_context.hh"
#include "BKE_lib_override.hh"
#include "BKE_library.hh"
#include "BKE_report.hh"
#include "BLT_translation.hh"
#include "DEG_depsgraph.hh"
#include "RNA_access.hh"
#include "RNA_define.hh"
#include "WM_api.hh"
#include "WM_types.hh"
#include "ED_armature.hh"
#include "ED_object.hh"
#include "ED_outliner.hh"
#include "UI_interface.hh"
#include "UI_interface_layout.hh"
#include "UI_resources.hh"
#include "armature_intern.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Typedefs

using blender::assign_bone_func = bool (*)(BoneCollection *bcoll, Bone *bone)
using blender::assign_ebone_func = bool (*)(BoneCollection *bcoll, EditBone *ebone)

Functions

static bool blender::bone_collection_add_poll (bContext *C)
static bool blender::active_bone_collection_poll (bContext *C)
static wmOperatorStatus blender::bone_collection_add_exec (bContext *C, wmOperator *)
static wmOperatorStatus blender::bone_collection_remove_exec (bContext *C, wmOperator *)
static wmOperatorStatus blender::bone_collection_move_exec (bContext *C, wmOperator *op)
static BoneCollection * blender::get_bonecoll_named_or_active (bContext *, wmOperator *op, Object *ob)
static void blender::bone_collection_assign_pchans (bContext *C, Object *ob, BoneCollection *bcoll, assign_bone_func assign_func, bool *made_any_changes, bool *had_bones_to_assign)
static void blender::bone_collection_assign_editbones (bContext *C, Object *ob, BoneCollection *bcoll, assign_ebone_func assign_func, bool *made_any_changes, bool *had_bones_to_assign)
static bool blender::bone_collection_assign_mode_specific (bContext *C, Object *ob, BoneCollection *bcoll, assign_bone_funcassign_bone_func assign_bone_funcassign_bone_func, assign_ebone_funcassign_ebone_func assign_ebone_funcassign_ebone_func, bool *made_any_changes, bool *had_bones_to_assign)
static bool blender::bone_collection_assign_named_mode_specific (bContext *C, Object *ob, BoneCollection *bcoll, const char *bone_name, assign_bone_funcassign_bone_func assign_bone_funcassign_bone_func, assign_ebone_funcassign_ebone_func assign_ebone_funcassign_ebone_func, bool *made_any_changes, bool *had_bones_to_assign)
static bool blender::bone_collection_assign_poll (bContext *C)
static wmOperatorStatus blender::bone_collection_assign_exec (bContext *C, wmOperator *op)
static bool blender::bone_collection_create_and_assign_poll (bContext *C)
static wmOperatorStatus blender::bone_collection_create_and_assign_exec (bContext *C, wmOperator *op)
static wmOperatorStatus blender::bone_collection_unassign_exec (bContext *C, wmOperator *op)
static wmOperatorStatus blender::bone_collection_unassign_named_exec (bContext *C, wmOperator *op)
static bool blender::editbone_is_member (const EditBone *ebone, const BoneCollection *bcoll)
static bool blender::armature_bone_select_poll (bContext *C)
static void blender::bone_collection_select (bContext *C, bArmature *armature, BoneCollection *bcoll, const bool select)
static wmOperatorStatus blender::bone_collection_select_exec (bContext *C, wmOperator *)
static wmOperatorStatus blender::bone_collection_deselect_exec (bContext *C, wmOperator *)
static BoneCollection * blender::add_or_move_to_collection_bcoll (wmOperator *op, bArmature *arm)
static wmOperatorStatus blender::add_or_move_to_collection_exec (bContext *C, wmOperator *op, const assign_bone_func assign_func_bone, const assign_ebone_func assign_func_ebone)
static wmOperatorStatus blender::move_to_collection_exec (bContext *C, wmOperator *op)
static wmOperatorStatus blender::assign_to_collection_exec (bContext *C, wmOperator *op)
static bool blender::move_to_collection_poll (bContext *C)
static void * blender::menu_custom_data_encode (const int bcoll_index, const bool is_move_operation)
static std::pair< int, bool > blender::menu_custom_data_decode (void *menu_custom_data)
static int blender::icon_for_bone_collection (const bool collection_contains_active_bone)
static void blender::menu_add_item_for_move_assign_unassign (ui::Layout &layout, const bArmature *arm, const BoneCollection *bcoll, const int bcoll_index, const bool is_move_operation)
static void blender::move_to_collection_menu_create (bContext *C, ui::Layout *layout, void *menu_custom_data)
static wmOperatorStatus blender::move_to_collection_regular_invoke (bContext *C, wmOperator *op)
static wmOperatorStatus blender::move_to_new_collection_invoke (bContext *C, wmOperator *op)
static wmOperatorStatus blender::move_to_collection_invoke (bContext *C, wmOperator *op, const wmEvent *)
Armature EditMode Operators
void blender::ARMATURE_OT_collection_add (wmOperatorType *ot)
void blender::ARMATURE_OT_collection_remove (wmOperatorType *ot)
void blender::ARMATURE_OT_collection_move (wmOperatorType *ot)
void blender::ARMATURE_OT_collection_assign (wmOperatorType *ot)
void blender::ARMATURE_OT_collection_create_and_assign (wmOperatorType *ot)
void blender::ARMATURE_OT_collection_unassign (wmOperatorType *ot)
void blender::ARMATURE_OT_collection_unassign_named (wmOperatorType *ot)
void blender::ARMATURE_OT_collection_select (wmOperatorType *ot)
void blender::ARMATURE_OT_collection_deselect (wmOperatorType *ot)
void blender::ARMATURE_OT_move_to_collection (wmOperatorType *ot)
void blender::ARMATURE_OT_assign_to_collection (wmOperatorType *ot)

Detailed Description

Implementation of Bone Collection operators and editing API's.

Definition in file editors/armature/bone_collections.cc.