|
Blender V4.5
|
#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_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 290 of file armature_add.cc.
References add_points_bone(), copy_v3_v3(), Object::data, DATA_, ED_armature_ebone_add(), EditBone::head, and EditBone::tail.
Referenced by add_points_bone(), and armature_fill_bones_exec().
|
static |
Definition at line 1792 of file armature_add.cc.
References add_v3_v3v3(), ANIM_armature_bonecoll_assign_active(), ANIM_bonecoll_is_visible_editbone(), armature_bone_primitive_add_exec(), 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, 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_bone_primitive_add_exec(), and 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 138 of file armature_add.cc.
References bArmature::act_edbone, ARM_MIRROR_EDIT, armature_click_extrude_exec(), BONE_CONNECTED, blender::animrig::bone_is_visible_editbone(), 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_exec(), armature_click_extrude_invoke(), and ARMATURE_OT_click_extrude().
|
static |
Definition at line 234 of file armature_add.cc.
References armature_click_extrude_exec(), armature_click_extrude_invoke(), 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_click_extrude_invoke(), and ARMATURE_OT_click_extrude().
|
static |
Definition at line 1109 of file armature_add.cc.
References bArmature::act_edbone, ARM_MIRROR_EDIT, armature_duplicate_selected_exec(), 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_visible_editbone(), 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(), 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, pose_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_duplicate_selected_exec(), and ARMATURE_OT_duplicate().
|
static |
Definition at line 1577 of file armature_add.cc.
References bArmature::act_edbone, ARM_MIRROR_EDIT, armature_extrude_exec(), 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_editbone(), 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(), EditBone::tail, EditBone::weight, WM_event_add_notifier(), EditBone::xwidth, and EditBone::zwidth.
Referenced by armature_extrude_exec(), and ARMATURE_OT_extrude().
| void ARMATURE_OT_bone_primitive_add | ( | wmOperatorType * | ot | ) |
Definition at line 1855 of file armature_add.cc.
References armature_bone_primitive_add_exec(), ARMATURE_OT_bone_primitive_add(), wmOperatorType::description, ED_operator_editarmature(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, MAXBONENAME, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_string(), and wmOperatorType::srna.
Referenced by ARMATURE_OT_bone_primitive_add(), and ED_operatortypes_armature().
| void ARMATURE_OT_click_extrude | ( | wmOperatorType * | ot | ) |
Definition at line 272 of file armature_add.cc.
References armature_click_extrude_exec(), armature_click_extrude_invoke(), ARMATURE_OT_click_extrude(), wmOperatorType::description, ED_operator_editarmature(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_DEPENDS_ON_CURSOR, OPTYPE_REGISTER, OPTYPE_UNDO, and wmOperatorType::poll.
Referenced by ARMATURE_OT_click_extrude(), and ED_operatortypes_armature().
| void ARMATURE_OT_duplicate | ( | wmOperatorType * | ot | ) |
Definition at line 1249 of file armature_add.cc.
References armature_duplicate_selected_exec(), ARMATURE_OT_duplicate(), wmOperatorType::description, ED_operator_editarmature(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ARMATURE_OT_duplicate(), and ED_operatortypes_armature().
| void ARMATURE_OT_extrude | ( | wmOperatorType * | ot | ) |
Definition at line 1770 of file armature_add.cc.
References armature_extrude_exec(), ARMATURE_OT_extrude(), wmOperatorType::description, ED_operator_editarmature(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ARMATURE_OT_extrude(), and ED_operatortypes_armature().
| void ARMATURE_OT_subdivide | ( | wmOperatorType * | ot | ) |
Definition at line 1971 of file armature_add.cc.
References ARMATURE_OT_subdivide(), armature_subdivide_exec(), wmOperatorType::description, ED_operator_editarmature(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_int(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by ARMATURE_OT_subdivide(), and ED_operatortypes_armature().
| void ARMATURE_OT_symmetrize | ( | wmOperatorType * | ot | ) |
Definition at line 1539 of file armature_add.cc.
References ARMATURE_OT_symmetrize(), armature_symmetrize_exec(), wmOperatorType::description, ED_operator_editarmature(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, wmOperatorType::prop, RNA_def_boolean(), RNA_def_enum(), and wmOperatorType::srna.
Referenced by ARMATURE_OT_symmetrize(), and ED_operatortypes_armature().
|
static |
Definition at line 1880 of file armature_add.cc.
References armature_subdivide_exec(), 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, 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(), and armature_subdivide_exec().
|
static |
near duplicate of armature_duplicate_selected_exec, except for parenting part (keep in sync)
Definition at line 1289 of file armature_add.cc.
References bArmature::act_edbone, ThemeWireColor::active, armature_symmetrize_exec(), 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_visible_editbone(), 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(), 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, pose_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(), and armature_symmetrize_exec().
|
static |
Definition at line 1045 of file armature_add.cc.
References BKE_pose_channel_copy_data(), BKE_pose_channel_ensure(), copy_pchan(), IDP_CopyProperty(), EditBone::name, Object::pose, EditBone::prop, and EditBone::system_properties.
Referenced by armature_symmetrize_exec(), copy_pchan(), and duplicateEditBoneObjects().
| EditBone * duplicateEditBone | ( | EditBone * | cur_bone, |
| const char * | name, | ||
| ListBase * | editbones, | ||
| Object * | ob ) |
Definition at line 1104 of file armature_add.cc.
References duplicateEditBone(), and duplicateEditBoneObjects().
Referenced by armature_duplicate_selected_exec(), armature_symmetrize_exec(), and duplicateEditBone().
| EditBone * duplicateEditBoneObjects | ( | EditBone * | cur_bone, |
| const char * | name, | ||
| ListBase * | editbones, | ||
| Object * | src_ob, | ||
| Object * | dst_ob ) |
| editbones | The target list. |
Definition at line 1081 of file armature_add.cc.
References BLI_addtail(), copy_pchan(), duplicateEditBoneObjects(), ED_armature_ebone_copy(), ED_armature_ebone_unique_name(), MEM_mallocN(), EditBone::name, STRNCPY(), and EditBone::temp.
Referenced by duplicateEditBone(), and duplicateEditBoneObjects().
Default bone add, returns it selected, but without tail set.
Definition at line 63 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_add(), ED_armature_ebone_unique_name(), bArmature::edbo, EditBone::flag, MEM_callocN(), EditBone::name, EditBone::rad_head, EditBone::rad_tail, EditBone::roll1, EditBone::roll2, EditBone::scale_in, EditBone::scale_out, EditBone::segments, ThemeWireColor::select, ThemeWireColor::solid, STRNCPY(), 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(), 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 104 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_ebone_add_primitive(), ED_armature_edit_deselect_all(), EditBone::head, length(), bArmature::runtime, EditBone::tail, and zero_v3().
Referenced by ED_armature_ebone_add_primitive(), and blender::ed::object::object_armature_add_exec().
Definition at line 1075 of file armature_add.cc.
References BLI_duplicatelist(), EditBone::bone_collections, and ED_armature_ebone_copy().
Referenced by duplicateEditBoneObjects(), and ED_armature_ebone_copy().
Definition at line 1272 of file armature_add.cc.
References ED_armature_ebone_get_mirrored(), bArmature::edbo, get_symmetrized_bone(), and EditBone::temp.
Referenced by armature_symmetrize_exec(), and get_symmetrized_bone().
|
static |
Definition at line 1002 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, mirror_bone_collection_assignments(), BoneCollection::name, and STREQ.
Referenced by armature_symmetrize_exec(), and mirror_bone_collection_assignments().
Definition at line 993 of file armature_add.cc.
References BKE_pose_channel_find_name(), BLI_assert, bPoseChannel::limitmax, bPoseChannel::limitmin, mirror_pose_bone(), EditBone::name, and Object::pose.
Referenced by armature_symmetrize_exec(), and mirror_pose_bone().
|
static |
Helper function for pose_edit_bone_duplicate, return the destination pchan from the original.
Definition at line 312 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(), bPoseChannel::name, and pchan_duplicate_map().
Referenced by pchan_duplicate_map(), and pose_edit_bone_duplicate().
Definition at line 331 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, ED_armature_ebone_get_mirrored(), LISTBASE_FOREACH, EditBone::name, pchan_duplicate_map(), Object::pose, pose_edit_bone_duplicate(), and EditBone::temp.
Referenced by armature_duplicate_selected_exec(), armature_symmetrize_exec(), and pose_edit_bone_duplicate().
|
static |
Definition at line 302 of file armature_add.cc.
References ED_armature_ebone_listbase_temp_clear(), and pre_edit_bone_duplicate().
Referenced by armature_duplicate_selected_exec(), armature_symmetrize_exec(), and pre_edit_bone_duplicate().
|
static |
Definition at line 872 of file armature_add.cc.
References track_axis_x_swap(), TRACK_nX, and TRACK_X.
|
static |
Definition at line 861 of file armature_add.cc.
References track_axis_x_swap(), TRACK_nX, and TRACK_X.
Referenced by track_axis_x_swap(), track_axis_x_swap(), 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 441 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(), update_duplicate_action_constraint_settings(), BezTriple::vec, and zero_v3().
Referenced by update_duplicate_action_constraint_settings(), and update_duplicate_constraint_settings().
|
static |
Definition at line 895 of file armature_add.cc.
References bConstraint::data, data, track_axis_x_swap(), and update_duplicate_constraint_damp_track_settings().
Referenced by update_duplicate_constraint_damp_track_settings(), and update_duplicate_constraint_settings().
|
static |
Definition at line 889 of file armature_add.cc.
References bConstraint::data, data, track_axis_x_swap(), and update_duplicate_constraint_lock_track_settings().
Referenced by update_duplicate_constraint_lock_track_settings(), and update_duplicate_constraint_settings().
|
static |
Definition at line 907 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_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(), and update_duplicate_constraint_settings().
|
static |
Definition at line 901 of file armature_add.cc.
References bConstraint::data, data, track_axis_x_swap(), and update_duplicate_constraint_shrinkwrap_settings().
Referenced by update_duplicate_constraint_settings(), and update_duplicate_constraint_shrinkwrap_settings().
|
static |
Definition at line 883 of file armature_add.cc.
References bConstraint::data, data, track_axis_x_swap(), and update_duplicate_constraint_track_to_settings().
Referenced by update_duplicate_constraint_settings(), and update_duplicate_constraint_track_to_settings().
Definition at line 954 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, Object::pose, and update_duplicate_custom_bone_shapes().
Referenced by armature_symmetrize_exec(), and update_duplicate_custom_bone_shapes().
|
static |
Definition at line 593 of file armature_add.cc.
References angle_wrap_rad(), bConstraint::data, M_PI, bKinematicConstraint::poleangle, and update_duplicate_kinematics_constraint_settings().
Referenced by update_duplicate_constraint_settings(), and update_duplicate_kinematics_constraint_settings().
|
static |
Definition at line 602 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(), update_duplicate_loc_rot_constraint_settings(), bRotLimitConstraint::xmax, bRotLimitConstraint::xmin, bRotLimitConstraint::ymax, bRotLimitConstraint::ymin, bRotLimitConstraint::zmax, and bRotLimitConstraint::zmin.
Referenced by update_duplicate_constraint_settings(), and update_duplicate_loc_rot_constraint_settings().
|
static |
Definition at line 381 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, ED_armature_ebone_find_name(), bArmature::edbo, LISTBASE_FOREACH, MAX_ID_NAME, EditBone::name, OB_ARMATURE, Object::pose, STRNCPY(), EditBone::temp, Object::type, and update_duplicate_subtarget().
Referenced by armature_duplicate_selected_exec(), armature_symmetrize_exec(), and update_duplicate_subtarget().
|
static |
Definition at line 682 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(), update_duplicate_transform_constraint_settings(), X, Y, and Z.
Referenced by update_duplicate_constraint_settings(), and update_duplicate_transform_constraint_settings().