|
Blender V5.0
|
#include "DNA_anim_types.h"#include "DNA_armature_types.h"#include "DNA_constraint_types.h"#include "DNA_object_types.h"#include "DNA_scene_types.h"#include "MEM_guardedalloc.h"#include "BLI_listbase.h"#include "BLI_map.hh"#include "BLI_math_matrix.h"#include "BLI_math_rotation.h"#include "BLI_math_vector.h"#include "BLI_string.h"#include "BLI_string_utf8.h"#include "BLI_string_utils.hh"#include "BLT_translation.hh"#include "BKE_action.hh"#include "BKE_armature.hh"#include "BKE_constraint.h"#include "BKE_context.hh"#include "BKE_fcurve.hh"#include "BKE_idprop.hh"#include "BKE_layer.hh"#include "BKE_lib_id.hh"#include "BKE_object_types.hh"#include "BKE_report.hh"#include "ANIM_action.hh"#include "RNA_access.hh"#include "RNA_define.hh"#include "WM_api.hh"#include "WM_types.hh"#include "ED_armature.hh"#include "ED_outliner.hh"#include "ED_screen.hh"#include "ED_view3d.hh"#include "ANIM_armature.hh"#include "ANIM_bone_collections.hh"#include "DEG_depsgraph.hh"#include "armature_intern.hh"Go to the source code of this file.
Operators and API's for creating bones.
Definition in file armature_add.cc.
Adds an EditBone between the nominated locations (should be in the right space).
Definition at line 291 of file armature_add.cc.
References copy_v3_v3(), Object::data, DATA_, ED_armature_ebone_add(), EditBone::head, and EditBone::tail.
Referenced by armature_fill_bones_exec().
|
static |
Definition at line 1785 of file armature_add.cc.
References add_v3_v3v3(), ANIM_armature_bonecoll_assign_active(), ANIM_bonecoll_is_visible_editbone(), BoneCollectionReference::bcoll, BKE_reportf(), BLI_assert_msg, EditBone::bone_collections, C, copy_m3_m4(), copy_v3_v3(), CTX_data_edit_object(), CTX_data_scene(), CTX_wm_region_view3d(), Object::data, DEG_id_tag_update(), ED_armature_ebone_add(), ED_armature_edit_deselect_all(), ED_outliner_select_sync_from_edit_bone_tag(), ListBase::first, EditBone::head, Object::id, ID_RECALC_SELECT, invert_m3_m3(), invert_m4_m4(), MAXBONENAME, mul_m3_m3m3(), mul_m4_v3(), BoneCollection::name, name, NC_OBJECT, ND_BONE_SELECT, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_string_get(), RPT_WARNING, Object::runtime, EditBone::tail, U, unit_m3(), USER_ADD_VIEWALIGNED, RegionView3D::viewmat, and WM_event_add_notifier().
Referenced by ARMATURE_OT_bone_primitive_add().
|
static |
Note this is already ported to multi-objects as it is. Since only the active bone is extruded even for single objects, it makes sense to stick to the active object here.
If we want the support to be expanded we should something like the offset we do for mesh click extrude.
Definition at line 139 of file armature_add.cc.
References bArmature::act_edbone, ARM_MIRROR_EDIT, BONE_CONNECTED, blender::animrig::bone_is_visible(), BONE_ROOTSEL, BONE_TIPSEL, C, copy_m3_m4(), copy_v3_v3(), CTX_data_edit_object(), CTX_data_scene(), Scene::cursor, Object::data, DEG_id_tag_update(), EditBone::dist, ED_armature_ebone_add(), ED_armature_ebone_get_mirrored(), ED_armature_edit_deselect_all(), ED_armature_edit_sync_selection(), ED_outliner_select_sync_from_edit_bone_tag(), bArmature::edbo, ListBase::first, bArmature::flag, EditBone::flag, EditBone::head, Object::id, ID_RECALC_SELECT, invert_m3_m3(), len_v3v3(), EditBone::length, View3DCursor::location, mul_m3_v3(), EditBone::name, NC_OBJECT, ND_BONE_SELECT, EditBone::next, OPERATOR_CANCELLED, OPERATOR_FINISHED, EditBone::parent, EditBone::rad_head, EditBone::rad_tail, sub_v3_v3v3(), EditBone::tail, and WM_event_add_notifier().
Referenced by armature_click_extrude_invoke(), and ARMATURE_OT_click_extrude().
|
static |
Definition at line 235 of file armature_add.cc.
References armature_click_extrude_exec(), C, copy_v2fl_v2i(), copy_v3_v3(), CTX_data_scene(), CTX_wm_region(), CTX_wm_view3d(), Scene::cursor, ED_view3d_win_to_3d(), View3DCursor::location, wmEvent::mval, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, and WM_operator_flag_only_pass_through_on_press().
Referenced by ARMATURE_OT_click_extrude().
|
static |
Definition at line 1110 of file armature_add.cc.
References bArmature::act_edbone, ARM_MIRROR_EDIT, EditBone::bbone_next, EditBone::bbone_prev, BKE_view_layer_array_from_objects_in_edit_mode_unique_data(), BLI_string_flip_side_name(), BONE_CONNECTED, blender::animrig::bone_is_selected(), blender::animrig::bone_is_visible(), BONE_ROOTSEL, BONE_SELECTED, BONE_TIPSEL, C, CTX_DATA_COUNT, CTX_data_scene(), CTX_data_view_layer(), CTX_wm_view3d(), DEG_id_tag_update(), duplicateEditBone(), EditBone::ebone, ED_armature_ebone_find_name(), ED_armature_ebone_get_mirrored(), ED_armature_edit_sync_selection(), ED_outliner_select_sync_from_edit_bone_tag(), bArmature::edbo, ListBase::first, bArmature::flag, EditBone::flag, ID_RECALC_SELECT, LISTBASE_FOREACH, MAXBONENAME, EditBone::name, NC_OBJECT, ND_BONE_SELECT, EditBone::next, OPERATOR_CANCELLED, OPERATOR_FINISHED, EditBone::parent, post_edit_bone_duplicate(), pre_edit_bone_duplicate(), wmOperator::ptr, RNA_boolean_get(), EditBone::temp, update_duplicate_subtarget(), and WM_event_add_notifier().
Referenced by ARMATURE_OT_duplicate().
|
static |
Definition at line 1570 of file armature_add.cc.
References bArmature::act_edbone, ARM_MIRROR_EDIT, BKE_view_layer_array_from_objects_in_edit_mode_unique_data(), BLI_addtail(), BLI_duplicatelist(), BLI_strncat(), EditBone::bone_collections, BONE_CONNECTED, blender::animrig::bone_is_visible(), BONE_RELATIVE_PARENTING, BONE_ROOTSEL, BONE_SELECTED, BONE_TIPSEL, C, EditBone::color, copy_v3_v3(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_view3d(), EditBone::curve_in_x, EditBone::curve_in_z, EditBone::curve_out_x, EditBone::curve_out_z, DEG_id_tag_update(), EditBone::dist, EditBone::drawtype, EditBone::ease1, EditBone::ease2, ED_armature_ebone_get_mirrored(), ED_armature_ebone_unique_name(), ED_armature_edit_sync_selection(), ED_outliner_select_sync_from_edit_bone_tag(), bArmature::edbo, ListBase::first, bArmature::flag, EditBone::flag, EditBone::head, ID_RECALC_SELECT, EditBone::layer, LISTBASE_FOREACH, MAXBONENAME, MEM_callocN(), EditBone::name, NC_OBJECT, ND_BONE_SELECT, EditBone::next, OPERATOR_CANCELLED, OPERATOR_FINISHED, EditBone::parent, wmOperator::ptr, EditBone::rad_head, EditBone::rad_tail, RNA_boolean_get(), EditBone::roll1, EditBone::roll2, EditBone::scale_in, EditBone::scale_out, EditBone::segments, STRNCPY_UTF8, EditBone::tail, EditBone::weight, WM_event_add_notifier(), EditBone::xwidth, and EditBone::zwidth.
Referenced by ARMATURE_OT_extrude().
| void ARMATURE_OT_bone_primitive_add | ( | wmOperatorType * | ot | ) |
Definition at line 1848 of file armature_add.cc.
References armature_bone_primitive_add_exec(), ED_operator_editarmature(), MAXBONENAME, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and RNA_def_string().
Referenced by ED_operatortypes_armature().
| void ARMATURE_OT_click_extrude | ( | wmOperatorType * | ot | ) |
Definition at line 273 of file armature_add.cc.
References armature_click_extrude_exec(), armature_click_extrude_invoke(), ED_operator_editarmature(), OPTYPE_DEPENDS_ON_CURSOR, OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by ED_operatortypes_armature().
| void ARMATURE_OT_duplicate | ( | wmOperatorType * | ot | ) |
Definition at line 1244 of file armature_add.cc.
References armature_duplicate_selected_exec(), ED_operator_editarmature(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and RNA_def_boolean().
Referenced by ED_operatortypes_armature().
| void ARMATURE_OT_extrude | ( | wmOperatorType * | ot | ) |
Definition at line 1763 of file armature_add.cc.
References armature_extrude_exec(), ED_operator_editarmature(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and RNA_def_boolean().
Referenced by ED_operatortypes_armature().
| void ARMATURE_OT_subdivide | ( | wmOperatorType * | ot | ) |
Definition at line 1964 of file armature_add.cc.
References armature_subdivide_exec(), ED_operator_editarmature(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, PROP_SKIP_SAVE, RNA_def_int(), and RNA_def_property_flag().
Referenced by ED_operatortypes_armature().
| void ARMATURE_OT_symmetrize | ( | wmOperatorType * | ot | ) |
Definition at line 1532 of file armature_add.cc.
References armature_symmetrize_exec(), ED_operator_editarmature(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, RNA_def_boolean(), and RNA_def_enum().
Referenced by ED_operatortypes_armature().
|
static |
Definition at line 1873 of file armature_add.cc.
References BLI_addtail(), BLI_assert_msg, BLI_duplicatelist(), EditBone::bone_collections, BONE_CONNECTED, C, copy_v3_v3(), CTX_DATA_BEGIN_WITH_ID, CTX_data_edit_object(), CTX_DATA_END, DEG_id_tag_update(), ED_armature_ebone_unique_name(), ED_outliner_select_sync_from_edit_bone_tag(), ListBase::first, EditBone::flag, float, EditBone::head, i, Object::id, ID_RECALC_SELECT, ListBase::last, LISTBASE_FOREACH, LISTBASE_FOREACH_BACKWARD, MEM_mallocN(), EditBone::name, NC_OBJECT, ND_BONE_SELECT, EditBone::next, OPERATOR_FINISHED, EditBone::parent, EditBone::prop, wmOperator::ptr, EditBone::rad_head, RNA_int_get(), EditBone::system_properties, EditBone::tail, and WM_event_add_notifier().
Referenced by ARMATURE_OT_subdivide().
|
static |
near duplicate of armature_duplicate_selected_exec, except for parenting part (keep in sync)
Definition at line 1284 of file armature_add.cc.
References bArmature::act_edbone, ThemeWireColor::active, EditBone::bbone_flag, EditBone::bbone_mapping_mode, EditBone::bbone_next, EditBone::bbone_next_flag, EditBone::bbone_next_type, EditBone::bbone_prev, EditBone::bbone_prev_flag, EditBone::bbone_prev_type, BKE_pose_channel_ensure(), BKE_pose_channel_free(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data(), BLI_string_flip_side_name(), BONE_CONNECTED, blender::animrig::bone_is_selected(), blender::animrig::bone_is_visible(), BONE_ROOTSEL, BONE_SELECTED, BONE_TIPSEL, C, EditBone::color, copy_pchan(), copy_v4_v4_uchar(), CTX_DATA_COUNT, CTX_data_scene(), CTX_data_view_layer(), CTX_wm_view3d(), BoneColor::custom, DEG_id_tag_update(), EditBone::drawtype, duplicateEditBone(), EditBone::ebone, EBONE_SELECTABLE, ED_armature_ebone_find_name(), ED_armature_ebone_select_set(), ED_armature_edit_sync_selection(), ED_armature_edit_transform_mirror_update(), bArmature::edbo, ListBase::first, EditBone::flag, ThemeWireColor::flag, get_symmetrized_bone(), EditBone::head, ID_RECALC_SELECT, EditBone::inherit_scale_mode, LISTBASE_FOREACH, MAXBONENAME, mirror_bone_collection_assignments(), mirror_pose_bone(), EditBone::name, NC_OBJECT, ND_BONE_SELECT, EditBone::next, OPERATOR_CANCELLED, OPERATOR_FINISHED, BoneColor::palette_index, EditBone::parent, post_edit_bone_duplicate(), pre_edit_bone_duplicate(), wmOperator::ptr, RNA_boolean_get(), RNA_enum_get(), ThemeWireColor::select, ThemeWireColor::solid, STREQ, EditBone::tail, EditBone::temp, update_duplicate_constraint_settings(), update_duplicate_custom_bone_shapes(), update_duplicate_subtarget(), and WM_event_add_notifier().
Referenced by ARMATURE_OT_symmetrize().
|
static |
Definition at line 1046 of file armature_add.cc.
References BKE_pose_channel_copy_data(), BKE_pose_channel_ensure(), IDP_CopyProperty(), EditBone::name, Object::pose, EditBone::prop, and EditBone::system_properties.
Referenced by armature_symmetrize_exec(), and duplicateEditBoneObjects().
| EditBone * duplicateEditBone | ( | EditBone * | cur_bone, |
| const char * | name, | ||
| ListBase * | editbones, | ||
| Object * | ob ) |
Definition at line 1105 of file armature_add.cc.
References duplicateEditBoneObjects(), and name.
Referenced by armature_duplicate_selected_exec(), and armature_symmetrize_exec().
| EditBone * duplicateEditBoneObjects | ( | EditBone * | cur_bone, |
| const char * | name, | ||
| ListBase * | editbones, | ||
| Object * | src_ob, | ||
| Object * | dst_ob ) |
| editbones | The target list. |
Definition at line 1082 of file armature_add.cc.
References BLI_addtail(), copy_pchan(), EditBone::ebone, ED_armature_ebone_copy(), ED_armature_ebone_unique_name(), MEM_mallocN(), EditBone::name, name, STRNCPY_UTF8, and EditBone::temp.
Referenced by duplicateEditBone().
Default bone add, returns it selected, but without tail set.
Definition at line 64 of file armature_add.cc.
References ThemeWireColor::active, ARM_DRAW_TYPE_ARMATURE_DEFINED, BLI_addtail(), BONE_TIPSEL, EditBone::color, copy_v3_fl(), EditBone::curve_in_x, EditBone::curve_in_z, EditBone::curve_out_x, EditBone::curve_out_z, BoneColor::custom, EditBone::dist, EditBone::drawtype, EditBone::ease1, EditBone::ease2, ED_armature_ebone_unique_name(), bArmature::edbo, EditBone::flag, MEM_callocN(), EditBone::name, name, EditBone::rad_head, EditBone::rad_tail, EditBone::roll1, EditBone::roll2, EditBone::scale_in, EditBone::scale_out, EditBone::segments, ThemeWireColor::select, ThemeWireColor::solid, STRNCPY_UTF8, EditBone::weight, EditBone::xwidth, and EditBone::zwidth.
Referenced by add_points_bone(), armature_bone_primitive_add_exec(), armature_click_extrude_exec(), blender::io::fbx::ArmatureImportContext::create_armature_bones(), ED_armature_ebone_add_primitive(), blender::io::usd::import_skeleton(), blender::ed::object::modifier_skin_armature_create(), and blender::ed::object::skin_armature_bone_create().
| EditBone * ED_armature_ebone_add_primitive | ( | Object * | obedit_arm, |
| const float | length, | ||
| const bool | view_aligned ) |
Definition at line 105 of file armature_add.cc.
References bArmature::act_edbone, bArmature_Runtime::active_collection, ANIM_armature_bonecoll_assign_editbone(), Object::data, DATA_, ED_armature_ebone_add(), ED_armature_edit_deselect_all(), EditBone::head, length(), bArmature::runtime, EditBone::tail, and zero_v3().
Referenced by blender::ed::object::object_armature_add_exec().
Definition at line 1076 of file armature_add.cc.
References BLI_duplicatelist(), and EditBone::bone_collections.
Referenced by duplicateEditBoneObjects().
Definition at line 1267 of file armature_add.cc.
References EditBone::ebone, ED_armature_ebone_get_mirrored(), bArmature::edbo, and EditBone::temp.
Referenced by armature_symmetrize_exec().
|
static |
Definition at line 1003 of file armature_add.cc.
References ANIM_armature_bonecoll_assign_editbone(), ANIM_armature_bonecoll_get_by_name(), ANIM_armature_bonecoll_new(), ANIM_armature_bonecoll_unassign_editbone(), blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::animrig::armature_bonecoll_find_index(), blender::animrig::armature_bonecoll_find_parent_index(), BLI_assert, BLI_assert_msg, BLI_string_flip_side_name(), EditBone::bone_collections, bArmature::edbo, LISTBASE_FOREACH, BoneCollection::name, and STREQ.
Referenced by armature_symmetrize_exec().
Definition at line 994 of file armature_add.cc.
References BKE_pose_channel_find_name(), BLI_assert, bPoseChannel::limitmax, bPoseChannel::limitmin, EditBone::name, and Object::pose.
Referenced by armature_symmetrize_exec().
|
static |
Helper function for post_edit_bone_duplicate, return the destination pchan from the original.
Definition at line 313 of file armature_add.cc.
References BKE_pose_channel_find_name(), blender::StringRefNull::c_str(), blender::StringRefBase::is_empty(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_default(), and bPoseChannel::name.
Referenced by post_edit_bone_duplicate().
Definition at line 332 of file armature_add.cc.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_as(), bPoseChannel::bbone_next, bPoseChannel::bbone_prev, BKE_pose_channel_find_name(), BKE_pose_channels_hash_ensure(), BKE_pose_channels_hash_free(), bPoseChannel::custom_tx, EditBone::ebone, ED_armature_ebone_get_mirrored(), LISTBASE_FOREACH, EditBone::name, pchan_duplicate_map(), Object::pose, and EditBone::temp.
Referenced by armature_duplicate_selected_exec(), and armature_symmetrize_exec().
|
static |
Definition at line 303 of file armature_add.cc.
References ED_armature_ebone_listbase_temp_clear().
Referenced by armature_duplicate_selected_exec(), and armature_symmetrize_exec().
|
static |
Definition at line 873 of file armature_add.cc.
|
static |
Definition at line 862 of file armature_add.cc.
References TRACK_nX, and TRACK_X.
Referenced by update_duplicate_constraint_damp_track_settings(), update_duplicate_constraint_lock_track_settings(), update_duplicate_constraint_shrinkwrap_settings(), and update_duplicate_constraint_track_to_settings().
|
static |
Definition at line 442 of file armature_add.cc.
References bActionConstraint::act, action_groups_add_channel(), action_groups_add_new(), bActionConstraint::action_slot_handle, FCurve::array_index, FCurve::bezt, BKE_action_group_find_name(), BKE_constraint_custom_object_space_init(), BKE_constraint_mat_convertspace(), BKE_fcurve_copy(), BKE_pose_channel_find_name(), BLI_assert, BLI_assert_msg, BLI_string_replaceN(), BLI_strn_endswith(), blender::animrig::Channelbag::channel_group_ensure(), blender::animrig::channelbag_for_action_slot(), CONSTRAINT_SPACE_LOCAL, bConstraint::data, DEG_id_tag_update(), bConstraintOb::depsgraph, ELEM, fabsf, blender::animrig::Channelbag::fcurve_append(), blender::animrig::Channelbag::fcurve_assign_to_channel_group(), blender::animrig::fcurve_matches_collection_path(), blender::animrig::fcurves_in_action_slot_filtered(), i, bAction::id, ID_RECALC_ANIMATION_NO_FLUSH, invert_m4_m4(), blender::animrig::Action::is_action_legacy(), bActionConstraint::max, MEM_freeN(), bActionConstraint::min, mul_m4_v3(), EditBone::name, bConstraintOb::ob, bConstraintOb::pchan, Object::pose, FCurve::rna_path, bConstraintOb::scene, bActionConstraint::subtarget, bConstraint::tarspace, bActionConstraint::type, unit_m4(), BezTriple::vec, and zero_v3().
Referenced by update_duplicate_constraint_settings().
|
static |
Definition at line 896 of file armature_add.cc.
References bConstraint::data, data, and track_axis_x_swap().
Referenced by update_duplicate_constraint_settings().
|
static |
Definition at line 890 of file armature_add.cc.
References bConstraint::data, data, and track_axis_x_swap().
Referenced by update_duplicate_constraint_settings().
|
static |
Definition at line 908 of file armature_add.cc.
References BKE_pose_channel_ensure(), CONSTRAINT_TYPE_ACTION, CONSTRAINT_TYPE_DAMPTRACK, CONSTRAINT_TYPE_KINEMATIC, CONSTRAINT_TYPE_LOCKTRACK, CONSTRAINT_TYPE_LOCLIMIT, CONSTRAINT_TYPE_ROTLIMIT, CONSTRAINT_TYPE_SHRINKWRAP, CONSTRAINT_TYPE_TRACKTO, CONSTRAINT_TYPE_TRANSFORM, bPoseChannel::constraints, LISTBASE_FOREACH, EditBone::name, Object::pose, update_duplicate_action_constraint_settings(), update_duplicate_constraint_damp_track_settings(), update_duplicate_constraint_lock_track_settings(), update_duplicate_constraint_shrinkwrap_settings(), update_duplicate_constraint_track_to_settings(), update_duplicate_kinematics_constraint_settings(), update_duplicate_loc_rot_constraint_settings(), and update_duplicate_transform_constraint_settings().
Referenced by armature_symmetrize_exec().
|
static |
Definition at line 902 of file armature_add.cc.
References bConstraint::data, data, and track_axis_x_swap().
Referenced by update_duplicate_constraint_settings().
|
static |
Definition at line 884 of file armature_add.cc.
References bConstraint::data, data, and track_axis_x_swap().
Referenced by update_duplicate_constraint_settings().
Definition at line 955 of file armature_add.cc.
References BKE_libblock_find_name(), BKE_pose_channel_ensure(), BLI_string_flip_side_name(), C, CTX_data_main(), bPoseChannel::custom, bPoseChannel::custom_rotation_euler, bPoseChannel::custom_scale_xyz, bPoseChannel::custom_translation, Object::id, ID_OB, MAX_ID_NAME, EditBone::name, ID::name, nullptr, and Object::pose.
Referenced by armature_symmetrize_exec().
|
static |
Definition at line 594 of file armature_add.cc.
References angle_wrap_rad(), bConstraint::data, M_PI, and bKinematicConstraint::poleangle.
Referenced by update_duplicate_constraint_settings().
|
static |
Definition at line 603 of file armature_add.cc.
References BKE_constraint_custom_object_space_init(), BKE_constraint_mat_convertspace(), CONSTRAINT_SPACE_LOCAL, CONSTRAINT_TYPE_ROTLIMIT, copy_v3_v3(), bConstraint::data, bConstraintOb::depsgraph, bRotLimitConstraint::flag, invert_m4_m4(), LIMIT_XMAX, LIMIT_XMIN, mul_m4_v3(), bConstraintOb::ob, bConstraint::ownspace, bConstraintOb::pchan, bConstraintOb::scene, bConstraint::type, unit_m4(), bRotLimitConstraint::xmax, bRotLimitConstraint::xmin, bRotLimitConstraint::ymax, bRotLimitConstraint::ymin, bRotLimitConstraint::zmax, and bRotLimitConstraint::zmin.
Referenced by update_duplicate_constraint_settings().
|
static |
Definition at line 382 of file armature_add.cc.
References BKE_constraint_targets_flush(), BKE_constraint_targets_get(), BKE_pose_channel_ensure(), BKE_pose_channel_find_name(), BLI_string_flip_side_name(), bPoseChannel::constraints, Object::data, EditBone::ebone, ED_armature_ebone_find_name(), bArmature::edbo, LISTBASE_FOREACH, MAX_ID_NAME, EditBone::name, OB_ARMATURE, Object::pose, STRNCPY_UTF8, EditBone::temp, and Object::type.
Referenced by armature_duplicate_selected_exec(), and armature_symmetrize_exec().
|
static |
Definition at line 683 of file armature_add.cc.
References BKE_constraint_custom_object_space_init(), BKE_constraint_mat_convertspace(), BKE_pose_channel_find_name(), CONSTRAINT_SPACE_LOCAL, copy_v3_v3(), bConstraint::data, bConstraintOb::depsgraph, bTransformConstraint::from, bTransformConstraint::from_max, bTransformConstraint::from_max_rot, bTransformConstraint::from_min, bTransformConstraint::from_min_rot, i, invert_m4_m4(), bTransformConstraint::map, mul_m4_v3(), bConstraintOb::ob, bConstraint::ownspace, bConstraintOb::pchan, Object::pose, bConstraintOb::scene, bTransformConstraint::subtarget, bConstraint::tarspace, bTransformConstraint::to, bTransformConstraint::to_max, bTransformConstraint::to_max_rot, bTransformConstraint::to_max_scale, bTransformConstraint::to_min, bTransformConstraint::to_min_rot, bTransformConstraint::to_min_scale, TRANS_LOCATION, TRANS_ROTATION, TRANS_SCALE, unit_m4(), X, Y, and Z.
Referenced by update_duplicate_constraint_settings().