Blender
V3.3
|
#include <stdio.h>
#include <string.h>
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
#include "BLI_dynstr.h"
#include "BLI_math.h"
#include "BLI_utildefines.h"
#include "BLT_translation.h"
#include "DNA_anim_types.h"
#include "DNA_armature_types.h"
#include "DNA_constraint_types.h"
#include "DNA_curve_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DNA_text_types.h"
#include "BIK_api.h"
#include "BKE_action.h"
#include "BKE_armature.h"
#include "BKE_constraint.h"
#include "BKE_context.h"
#include "BKE_fcurve.h"
#include "BKE_main.h"
#include "BKE_object.h"
#include "BKE_report.h"
#include "BKE_tracking.h"
#include "DEG_depsgraph.h"
#include "DEG_depsgraph_build.h"
#include "DEG_depsgraph_query.h"
#include "WM_api.h"
#include "WM_types.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "RNA_enum_types.h"
#include "RNA_path.h"
#include "RNA_prototypes.h"
#include "ED_keyframing.h"
#include "ED_object.h"
#include "ED_screen.h"
#include "UI_interface.h"
#include "UI_resources.h"
#include "object_intern.h"
Go to the source code of this file.
Generic Functions for Operators Using Constraint Names and Data Context | |
#define | EDIT_CONSTRAINT_OWNER_OBJECT 0 |
#define | EDIT_CONSTRAINT_OWNER_BONE 1 |
static const EnumPropertyItem | constraint_owner_items [] |
static bool | edit_constraint_poll_generic (bContext *C, StructRNA *rna_type, const bool is_liboverride_allowed) |
static bool | edit_constraint_poll (bContext *C) |
static bool | edit_constraint_liboverride_allowed_poll (bContext *C) |
static void | edit_constraint_properties (wmOperatorType *ot) |
static void | edit_constraint_report_property (wmOperatorType *ot) |
static bool | edit_constraint_invoke_properties (bContext *C, wmOperator *op, const wmEvent *event, int *r_retval) |
static bConstraint * | edit_constraint_property_get (bContext *C, wmOperator *op, Object *ob, int type) |
#define EDIT_CONSTRAINT_OWNER_BONE 1 |
Definition at line 643 of file object_constraint.c.
#define EDIT_CONSTRAINT_OWNER_OBJECT 0 |
Definition at line 642 of file object_constraint.c.
|
static |
Definition at line 992 of file object_constraint.c.
References BKE_report(), C, CONSTRAINT_TYPE_CHILDOF, CTX_data_main(), data, bConstraint::data, ED_object_active_context(), ED_object_constraint_update(), edit_constraint_property_get(), NC_OBJECT, ND_CONSTRAINT, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_ERROR, unit_m4(), and WM_event_add_notifier().
Referenced by childof_clear_inverse_invoke(), and CONSTRAINT_OT_childof_clear_inverse().
|
static |
Definition at line 1013 of file object_constraint.c.
References C, childof_clear_inverse_exec(), edit_constraint_invoke_properties(), NULL, and OPERATOR_CANCELLED.
Referenced by CONSTRAINT_OT_childof_clear_inverse().
|
static |
Definition at line 938 of file object_constraint.c.
References BKE_report(), C, CHILDOF_SET_INVERSE, CONSTRAINT_TYPE_CHILDOF, CTX_data_main(), data, bConstraint::data, ED_object_active_context(), ED_object_constraint_update(), edit_constraint_property_get(), force_evaluation_if_constraint_disabled(), Object::id, ID::name, NC_OBJECT, ND_CONSTRAINT, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_ERROR, and WM_event_add_notifier().
Referenced by childof_set_inverse_invoke(), and CONSTRAINT_OT_childof_set_inverse().
|
static |
Definition at line 964 of file object_constraint.c.
References C, childof_set_inverse_exec(), edit_constraint_invoke_properties(), NULL, and OPERATOR_CANCELLED.
Referenced by CONSTRAINT_OT_childof_set_inverse().
|
static |
Definition at line 2355 of file object_constraint.c.
References BKE_constraint_add_for_object(), BKE_constraint_add_for_pose(), BKE_pose_channel_active_if_layer_visible(), BKE_pose_tag_recalc(), BKE_pose_update_constraint_flags(), BKE_report(), BPY_pyconstraint_update(), C, CONSTRAINT_TYPE_NULL, CONSTRAINT_TYPE_PYTHON, Object::constraints, CTX_data_main(), bConstraint::data, DEG_id_tag_update(), DEG_relations_tag_update(), get_new_constraint_target(), Object::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, MEM_freeN, NA_ADDED, bPoseChannel::name, NC_OBJECT, ND_CONSTRAINT, NULL, OB_ARMATURE, object_test_constraints(), OPERATOR_CANCELLED, OPERATOR_FINISHED, Object::pose, wmOperator::reports, RPT_ERROR, set_constraint_nth_target(), type, Object::type, and WM_event_add_notifier().
Referenced by object_constraint_add_exec(), pose_constraint_add_exec(), and pose_ik_add_exec().
|
static |
Definition at line 1508 of file object_constraint.c.
References BKE_constraint_apply_and_remove_for_object(), BKE_constraint_apply_and_remove_for_pose(), BKE_report(), BKE_reportf(), C, constraints, CTX_data_ensure_evaluated_depsgraph(), CTX_data_main(), CTX_data_scene(), DEG_id_tag_update(), DEG_relations_tag_update(), depsgraph, ED_object_active_context(), ED_object_constraint_list_from_constraint(), ED_object_constraint_update(), edit_constraint_property_get(), Object::id, ID_RECALC_TRANSFORM, MAX_NAME, NA_REMOVED, bConstraint::name, NC_OBJECT, ND_CONSTRAINT, ND_POSE, ND_TRANSFORM, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RPT_INFO, scene, and WM_event_add_notifier().
Referenced by constraint_apply_invoke(), and CONSTRAINT_OT_apply().
|
static |
Definition at line 1574 of file object_constraint.c.
References C, constraint_apply_exec(), edit_constraint_invoke_properties(), and OPERATOR_CANCELLED.
Referenced by CONSTRAINT_OT_apply().
|
static |
Definition at line 1607 of file object_constraint.c.
References BKE_constraint_copy_for_object(), BKE_constraint_copy_for_pose(), BKE_reportf(), BLI_assert, BLI_findindex(), BLI_listbase_link_move(), C, CONSTRAINT_OVERRIDE_LIBRARY_LOCAL, constraints, CTX_data_main(), DEG_relations_tag_update(), ED_object_active_context(), ED_object_constraint_list_from_constraint(), ED_object_constraint_update(), edit_constraint_property_get(), bConstraint::flag, MAX_NAME, NA_ADDED, bConstraint::name, NC_OBJECT, ND_CONSTRAINT, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RPT_INFO, and WM_event_add_notifier().
Referenced by constraint_copy_invoke(), and CONSTRAINT_OT_copy().
|
static |
Definition at line 1659 of file object_constraint.c.
References C, constraint_copy_exec(), edit_constraint_invoke_properties(), and OPERATOR_CANCELLED.
Referenced by CONSTRAINT_OT_copy().
|
static |
Definition at line 1692 of file object_constraint.c.
References BKE_constraint_copy_for_object(), BKE_constraint_copy_for_pose(), BKE_pose_tag_recalc(), BKE_report(), C, bPoseChannel::constflag, CONSTRAINT_OVERRIDE_LIBRARY_LOCAL, bPoseChannel::constraints, CTX_DATA_BEGIN, CTX_DATA_BEGIN_WITH_ID, CTX_DATA_END, CTX_data_main(), DEG_id_tag_update(), DEG_relations_tag_update(), ED_object_active_context(), ED_object_constraint_list_from_constraint(), edit_constraint_property_get(), ListBase::first, bConstraint::flag, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, NC_OBJECT, ND_CONSTRAINT, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_ERROR, and WM_event_add_notifier().
Referenced by constraint_copy_to_selected_invoke(), and CONSTRAINT_OT_copy_to_selected().
|
static |
Definition at line 1761 of file object_constraint.c.
References C, constraint_copy_to_selected_exec(), and edit_constraint_invoke_properties().
Referenced by CONSTRAINT_OT_copy_to_selected().
NOTE: Can not return here, because CTX_DATA_BEGIN_WITH_ID allocated a list that needs to be freed by CTX_DATA_END.
NOTE: Can not return here, because CTX_DATA_BEGIN allocated a list that needs to be freed by CTX_DATA_END.
Definition at line 1770 of file object_constraint.c.
References C, CTX_DATA_BEGIN, CTX_DATA_BEGIN_WITH_ID, CTX_DATA_END, CTX_data_pointer_get_type(), CTX_wm_operator_poll_msg_set(), PointerRNA::data, ED_object_active_context(), ED_object_constraint_list_from_constraint(), PointerRNA::owner_id, ptr, and UNUSED_VARS.
Referenced by CONSTRAINT_OT_copy_to_selected().
|
static |
Definition at line 1438 of file object_constraint.c.
References BKE_constraint_remove_ex(), BKE_reportf(), C, CTX_data_main(), DEG_relations_tag_update(), ED_object_active_context(), ED_object_constraint_list_from_constraint(), ED_object_constraint_update(), edit_constraint_property_get(), MAX_NAME, NA_REMOVED, bConstraint::name, NC_OBJECT, ND_CONSTRAINT, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RPT_INFO, and WM_event_add_notifier().
Referenced by constraint_delete_invoke(), and CONSTRAINT_OT_delete().
|
static |
Definition at line 1475 of file object_constraint.c.
References C, constraint_delete_exec(), edit_constraint_invoke_properties(), and OPERATOR_CANCELLED.
Referenced by CONSTRAINT_OT_delete().
|
static |
Definition at line 1844 of file object_constraint.c.
References BLI_insertlinkafter(), BLI_remlink(), C, CTX_data_main(), ED_object_active_context(), ED_object_constraint_list_from_constraint(), ED_object_constraint_update(), edit_constraint_property_get(), NC_OBJECT, ND_CONSTRAINT, bConstraint::next, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by constraint_move_down_invoke(), and CONSTRAINT_OT_move_down().
|
static |
Definition at line 1866 of file object_constraint.c.
References C, constraint_move_down_exec(), and edit_constraint_invoke_properties().
Referenced by CONSTRAINT_OT_move_down().
|
static |
Definition at line 1954 of file object_constraint.c.
References C, CTX_data_main(), ED_object_active_context(), ED_object_constraint_move_to_index(), ED_object_constraint_update(), edit_constraint_property_get(), OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, and RNA_int_get().
Referenced by constraint_move_to_index_invoke(), and CONSTRAINT_OT_move_to_index().
|
static |
Definition at line 1975 of file object_constraint.c.
References C, constraint_move_to_index_exec(), and edit_constraint_invoke_properties().
Referenced by CONSTRAINT_OT_move_to_index().
|
static |
Definition at line 1900 of file object_constraint.c.
References BLI_insertlinkbefore(), BLI_remlink(), C, CTX_data_main(), ED_object_active_context(), ED_object_constraint_list_from_constraint(), ED_object_constraint_update(), edit_constraint_property_get(), NC_OBJECT, ND_CONSTRAINT, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, bConstraint::prev, and WM_event_add_notifier().
Referenced by constraint_move_up_invoke(), and CONSTRAINT_OT_move_up().
|
static |
Definition at line 1922 of file object_constraint.c.
References C, constraint_move_up_exec(), and edit_constraint_invoke_properties().
Referenced by CONSTRAINT_OT_move_up().
void CONSTRAINT_OT_apply | ( | wmOperatorType * | ot | ) |
Definition at line 1583 of file object_constraint.c.
References constraint_apply_exec(), constraint_apply_invoke(), wmOperatorType::description, edit_constraint_poll(), edit_constraint_properties(), edit_constraint_report_property(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_object().
void CONSTRAINT_OT_childof_clear_inverse | ( | wmOperatorType * | ot | ) |
Definition at line 1021 of file object_constraint.c.
References childof_clear_inverse_exec(), childof_clear_inverse_invoke(), wmOperatorType::description, edit_constraint_liboverride_allowed_poll(), edit_constraint_properties(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_object().
void CONSTRAINT_OT_childof_set_inverse | ( | wmOperatorType * | ot | ) |
Definition at line 972 of file object_constraint.c.
References childof_set_inverse_exec(), childof_set_inverse_invoke(), wmOperatorType::description, edit_constraint_liboverride_allowed_poll(), edit_constraint_properties(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_object().
void CONSTRAINT_OT_copy | ( | wmOperatorType * | ot | ) |
Definition at line 1668 of file object_constraint.c.
References constraint_copy_exec(), constraint_copy_invoke(), wmOperatorType::description, edit_constraint_poll(), edit_constraint_properties(), edit_constraint_report_property(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_object().
void CONSTRAINT_OT_copy_to_selected | ( | wmOperatorType * | ot | ) |
Definition at line 1821 of file object_constraint.c.
References constraint_copy_to_selected_exec(), constraint_copy_to_selected_invoke(), constraint_copy_to_selected_poll(), wmOperatorType::description, edit_constraint_properties(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_object().
void CONSTRAINT_OT_delete | ( | wmOperatorType * | ot | ) |
Definition at line 1484 of file object_constraint.c.
References constraint_delete_exec(), constraint_delete_invoke(), wmOperatorType::description, edit_constraint_poll(), edit_constraint_properties(), edit_constraint_report_property(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_object().
void CONSTRAINT_OT_followpath_path_animate | ( | wmOperatorType * | ot | ) |
Definition at line 1146 of file object_constraint.c.
References wmOperatorType::description, edit_constraint_poll(), edit_constraint_properties(), wmOperatorType::exec, wmOperatorType::flag, followpath_path_animate_exec(), followpath_path_animate_invoke(), wmOperatorType::idname, wmOperatorType::invoke, MAXFRAME, MINAFRAME, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_int(), and wmOperatorType::srna.
Referenced by ED_operatortypes_object().
void CONSTRAINT_OT_limitdistance_reset | ( | wmOperatorType * | ot | ) |
Definition at line 894 of file object_constraint.c.
References wmOperatorType::description, edit_constraint_liboverride_allowed_poll(), edit_constraint_properties(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, limitdistance_reset_exec(), limitdistance_reset_invoke(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_object().
void CONSTRAINT_OT_move_down | ( | wmOperatorType * | ot | ) |
Definition at line 1875 of file object_constraint.c.
References constraint_move_down_exec(), constraint_move_down_invoke(), wmOperatorType::description, edit_constraint_poll(), edit_constraint_properties(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_object().
void CONSTRAINT_OT_move_to_index | ( | wmOperatorType * | ot | ) |
Definition at line 1984 of file object_constraint.c.
References constraint_move_to_index_exec(), constraint_move_to_index_invoke(), wmOperatorType::description, edit_constraint_poll(), edit_constraint_properties(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_int(), and wmOperatorType::srna.
Referenced by ED_operatortypes_object().
void CONSTRAINT_OT_move_up | ( | wmOperatorType * | ot | ) |
Definition at line 1931 of file object_constraint.c.
References constraint_move_up_exec(), constraint_move_up_invoke(), wmOperatorType::description, edit_constraint_poll(), edit_constraint_properties(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_object().
void CONSTRAINT_OT_objectsolver_clear_inverse | ( | wmOperatorType * | ot | ) |
Definition at line 1283 of file object_constraint.c.
References wmOperatorType::description, edit_constraint_poll(), edit_constraint_properties(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, objectsolver_clear_inverse_exec(), objectsolver_clear_inverse_invoke(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_object().
void CONSTRAINT_OT_objectsolver_set_inverse | ( | wmOperatorType * | ot | ) |
Definition at line 1227 of file object_constraint.c.
References wmOperatorType::description, edit_constraint_poll(), edit_constraint_properties(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, objectsolver_set_inverse_exec(), objectsolver_set_inverse_invoke(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_object().
void CONSTRAINT_OT_stretchto_reset | ( | wmOperatorType * | ot | ) |
Definition at line 839 of file object_constraint.c.
References wmOperatorType::description, edit_constraint_liboverride_allowed_poll(), edit_constraint_properties(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, stretchto_reset_exec(), and stretchto_reset_invoke().
Referenced by ED_operatortypes_object().
|
static |
Definition at line 545 of file object_constraint.c.
References CONSTRAINT_OBTYPE_BONE, CONSTRAINT_OBTYPE_OBJECT, OB_ARMATURE, type, and Object::type.
Referenced by test_constraints().
bConstraint* ED_object_constraint_active_get | ( | struct Object * | ob | ) |
Single constraint.
Definition at line 143 of file object_constraint.c.
References BKE_constraints_active_get(), and ED_object_constraint_active_list().
If object is in pose-mode, return active bone constraints, else object constraints. No constraints are returned for a bone on an inactive bone-layer.
Definition at line 69 of file object_constraint.c.
References BKE_pose_channel_active_if_layer_visible(), bPoseChannel::constraints, Object::constraints, Object::mode, NULL, and OB_MODE_POSE.
Referenced by ED_object_constraint_active_get(), BCAnimationSampler::find_depending_animated(), pose_constraint_add_exec(), and pose_ik_add_exec().
void ED_object_constraint_active_set | ( | Object * | ob, |
bConstraint * | con | ||
) |
Definition at line 1308 of file object_constraint.c.
References BKE_constraints_active_set(), CONSTRAINT_ACTIVE, ED_object_constraint_list_from_constraint(), bConstraint::flag, and NULL.
Referenced by constraint_active_func().
void ED_object_constraint_copy_for_object | ( | Main * | bmain, |
Object * | ob_dst, | ||
bConstraint * | con | ||
) |
Definition at line 1411 of file object_constraint.c.
References BKE_constraint_copy_for_object(), CONSTRAINT_OVERRIDE_LIBRARY_LOCAL, ED_object_constraint_dependency_tag_update(), bConstraint::flag, NA_ADDED, NC_OBJECT, ND_CONSTRAINT, and WM_main_add_notifier().
Referenced by datastack_drop_copy().
void ED_object_constraint_copy_for_pose | ( | Main * | bmain, |
Object * | ob_dst, | ||
bPoseChannel * | pchan, | ||
bConstraint * | con | ||
) |
Definition at line 1420 of file object_constraint.c.
References BKE_constraint_copy_for_pose(), CONSTRAINT_OVERRIDE_LIBRARY_LOCAL, ED_object_constraint_dependency_tag_update(), bConstraint::flag, NA_ADDED, NC_OBJECT, ND_CONSTRAINT, and WM_main_add_notifier().
Referenced by datastack_drop_copy().
void ED_object_constraint_dependency_tag_update | ( | Main * | bmain, |
Object * | ob, | ||
bConstraint * | con | ||
) |
Definition at line 1375 of file object_constraint.c.
References DEG_relations_tag_update(), ED_object_constraint_tag_update(), object_pose_tag_update(), and Object::pose.
Referenced by ED_object_constraint_copy_for_object(), ED_object_constraint_copy_for_pose(), and ED_object_constraint_link().
Definition at line 1342 of file object_constraint.c.
References DEG_relations_tag_update(), ED_object_constraint_update(), object_pose_tag_update(), and Object::pose.
Definition at line 1401 of file object_constraint.c.
References BKE_constraints_copy(), BKE_constraints_free(), ED_object_constraint_dependency_tag_update(), LISTBASE_FOREACH, NA_ADDED, NC_OBJECT, ND_CONSTRAINT, NULL, src, and WM_main_add_notifier().
Referenced by datastack_drop_link().
ListBase* ED_object_constraint_list_from_constraint | ( | struct Object * | ob, |
struct bConstraint * | con, | ||
struct bPoseChannel ** | r_pchan | ||
) |
Find the list that a given constraint belongs to, and/or also get the posechannel this is from (if applicable).
Definition at line 103 of file object_constraint.c.
References BLI_findindex(), bPose::chanbase, bPoseChannel::constraints, Object::constraints, ELEM, ListBase::first, bPoseChannel::next, NULL, and Object::pose.
Referenced by constraint_apply_exec(), constraint_copy_exec(), constraint_copy_to_selected_exec(), constraint_copy_to_selected_poll(), constraint_delete_exec(), constraint_move_down_exec(), constraint_move_up_exec(), constraint_ops_extra_draw(), ED_object_constraint_active_set(), ED_object_constraint_move_to_index(), and edit_constraint_invoke_properties().
bool ED_object_constraint_move_to_index | ( | Object * | ob, |
bConstraint * | con, | ||
const int | index | ||
) |
Definition at line 1385 of file object_constraint.c.
References BLI_assert, BLI_findindex(), BLI_listbase_link_move(), ED_object_constraint_list_from_constraint(), NC_OBJECT, ND_CONSTRAINT, NULL, and WM_main_add_notifier().
Referenced by constraint_move_to_index_exec(), and datastack_drop_reorder().
void ED_object_constraint_tag_update | ( | Main * | bmain, |
Object * | ob, | ||
bConstraint * | con | ||
) |
Definition at line 1352 of file object_constraint.c.
References BKE_pose_tag_update_constraint_flags(), DEG_id_tag_update(), Object::id, ID_RECALC_COPY_ON_WRITE, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, OB_ARMATURE, object_test_constraint(), Object::pose, and Object::type.
Referenced by ED_object_constraint_dependency_tag_update().
Definition at line 1321 of file object_constraint.c.
References BKE_pose_update_constraint_flags(), DEG_id_tag_update(), Object::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, OB_ARMATURE, object_test_constraints(), Object::pose, and Object::type.
Referenced by childof_clear_inverse_exec(), childof_set_inverse_exec(), constraint_apply_exec(), constraint_copy_exec(), constraint_delete_exec(), constraint_fn(), constraint_move_down_exec(), constraint_move_to_index_exec(), constraint_move_up_exec(), ED_object_constraint_dependency_update(), limitdistance_reset_exec(), objectsolver_clear_inverse_exec(), objectsolver_set_inverse_exec(), and stretchto_reset_exec().
Definition at line 90 of file object_constraint.c.
References C, bPoseChannel::constraints, CTX_data_pointer_get(), PointerRNA::data, and NULL.
Referenced by edit_constraint_property_get().
|
static |
Definition at line 711 of file object_constraint.c.
References BLI_assert, C, Object::constraints, CTX_data_pointer_get_type(), PointerRNA::data, ED_object_active_context(), ED_object_constraint_list_from_constraint(), EDIT_CONSTRAINT_OWNER_BONE, EDIT_CONSTRAINT_OWNER_OBJECT, bConstraint::name, NULL, OPERATOR_CANCELLED, OPERATOR_PASS_THROUGH, PointerRNA::owner_id, wmOperator::ptr, ptr, RNA_enum_set(), RNA_pointer_is_null(), RNA_string_set(), RNA_struct_is_a(), RNA_struct_property_is_set(), PointerRNA::type, and UI_region_panel_custom_data_under_cursor().
Referenced by childof_clear_inverse_invoke(), childof_set_inverse_invoke(), constraint_apply_invoke(), constraint_copy_invoke(), constraint_copy_to_selected_invoke(), constraint_delete_invoke(), constraint_move_down_invoke(), constraint_move_to_index_invoke(), constraint_move_up_invoke(), followpath_path_animate_invoke(), limitdistance_reset_invoke(), objectsolver_clear_inverse_invoke(), objectsolver_set_inverse_invoke(), and stretchto_reset_invoke().
Definition at line 688 of file object_constraint.c.
References C, and edit_constraint_poll_generic().
Referenced by CONSTRAINT_OT_childof_clear_inverse(), CONSTRAINT_OT_childof_set_inverse(), CONSTRAINT_OT_limitdistance_reset(), and CONSTRAINT_OT_stretchto_reset().
Definition at line 681 of file object_constraint.c.
References C, and edit_constraint_poll_generic().
Referenced by CONSTRAINT_OT_apply(), CONSTRAINT_OT_copy(), CONSTRAINT_OT_delete(), CONSTRAINT_OT_followpath_path_animate(), CONSTRAINT_OT_move_down(), CONSTRAINT_OT_move_to_index(), CONSTRAINT_OT_move_up(), CONSTRAINT_OT_objectsolver_clear_inverse(), and CONSTRAINT_OT_objectsolver_set_inverse().
|
static |
Definition at line 655 of file object_constraint.c.
References BKE_constraint_is_nonlocal_in_liboverride(), C, CTX_data_pointer_get_type(), CTX_wm_operator_poll_msg_set(), PointerRNA::data, ED_object_active_context(), ED_operator_object_active_editable_ex(), ID_IS_LINKED, is_liboverride_allowed, NULL, PointerRNA::owner_id, and ptr.
Referenced by edit_constraint_liboverride_allowed_poll(), and edit_constraint_poll().
|
static |
Definition at line 693 of file object_constraint.c.
References constraint_owner_items, MAX_NAME, NULL, ot, PROP_HIDDEN, RNA_def_enum(), RNA_def_property_flag(), RNA_def_string(), and wmOperatorType::srna.
Referenced by CONSTRAINT_OT_apply(), CONSTRAINT_OT_childof_clear_inverse(), CONSTRAINT_OT_childof_set_inverse(), CONSTRAINT_OT_copy(), CONSTRAINT_OT_copy_to_selected(), CONSTRAINT_OT_delete(), CONSTRAINT_OT_followpath_path_animate(), CONSTRAINT_OT_limitdistance_reset(), CONSTRAINT_OT_move_down(), CONSTRAINT_OT_move_to_index(), CONSTRAINT_OT_move_up(), CONSTRAINT_OT_objectsolver_clear_inverse(), CONSTRAINT_OT_objectsolver_set_inverse(), and CONSTRAINT_OT_stretchto_reset().
|
static |
Definition at line 770 of file object_constraint.c.
References BKE_constraints_find_name(), C, Object::constraints, ED_object_pose_constraint_list(), EDIT_CONSTRAINT_OWNER_BONE, G, G_DEBUG, MAX_NAME, bConstraint::name, NULL, wmOperator::ptr, RNA_enum_get(), RNA_string_get(), type, and bConstraint::type.
Referenced by childof_clear_inverse_exec(), childof_set_inverse_exec(), constraint_apply_exec(), constraint_copy_exec(), constraint_copy_to_selected_exec(), constraint_delete_exec(), constraint_move_down_exec(), constraint_move_to_index_exec(), constraint_move_up_exec(), followpath_path_animate_exec(), limitdistance_reset_exec(), objectsolver_clear_inverse_exec(), objectsolver_set_inverse_exec(), and stretchto_reset_exec().
|
static |
Definition at line 704 of file object_constraint.c.
References ot, PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by CONSTRAINT_OT_apply(), CONSTRAINT_OT_copy(), and CONSTRAINT_OT_delete().
|
static |
Definition at line 1046 of file object_constraint.c.
References A, AnimData::action, add_fmodifier(), Curve::adt, B, FCurve::bezt, BKE_fcurve_find(), BKE_report(), C, FMod_Generator::coefficients, CONSTRAINT_TYPE_FOLLOWPATH, CTX_data_main(), bAction::curves, data, FModifier::data, bConstraint::data, ED_action_fcurve_ensure(), ED_id_action_ensure(), ED_object_active_context(), edit_constraint_property_get(), ELEM, ListBase::first, float(), FMODIFIER_TYPE_GENERATOR, FOLLOWPATH_STATIC, FCurve::fpt, Curve::id, Object::id, if(), len, MEM_freeN, FCurve::modifiers, NC_OBJECT, ND_CONSTRAINT, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, ptr, wmOperator::reports, RNA_int_get(), RNA_path_from_ID_to_property(), RNA_pointer_create(), RNA_struct_find_property(), RPT_ERROR, RPT_WARNING, and WM_event_add_notifier().
Referenced by CONSTRAINT_OT_followpath_path_animate(), and followpath_path_animate_invoke().
|
static |
Definition at line 1135 of file object_constraint.c.
References C, edit_constraint_invoke_properties(), followpath_path_animate_exec(), NULL, and OPERATOR_CANCELLED.
Referenced by CONSTRAINT_OT_followpath_path_animate().
|
static |
Definition at line 922 of file object_constraint.c.
References BKE_object_eval_constraints(), C, CONSTRAINT_DISABLE, CONSTRAINT_OFF, CTX_data_ensure_evaluated_depsgraph(), DEG_get_evaluated_scene(), depsgraph, bConstraint::flag, and scene.
Referenced by childof_set_inverse_exec(), and objectsolver_set_inverse_exec().
|
static |
Definition at line 2206 of file object_constraint.c.
References blender::bke::attribute_accessor_functions::add(), BA_SELECT, BASACT, BKE_object_add(), BKE_pose_channel_active_if_layer_visible(), BKE_pose_channel_active_or_first_selected(), C, CONSTRAINT_TYPE_CLAMPTO, CONSTRAINT_TYPE_FOLLOWPATH, CONSTRAINT_TYPE_KINEMATIC, CONSTRAINT_TYPE_LOCLIMIT, CONSTRAINT_TYPE_NULL, CONSTRAINT_TYPE_ROTLIMIT, CONSTRAINT_TYPE_SAMEVOL, CONSTRAINT_TYPE_SHRINKWRAP, CONSTRAINT_TYPE_SIZELIMIT, CONSTRAINT_TYPE_SPLINEIK, copy_v3_v3(), CTX_DATA_BEGIN, CTX_DATA_END, CTX_data_main(), CTX_data_view_layer(), CU_PATH, ED_object_active_context(), ED_object_base_select(), Curve::flag, Object::loc, mul_v3_m4v3(), NULL, OB_ARMATURE, OB_CURVES_LEGACY, OB_EMPTY, OB_MESH, OB_MODE_POSE, Object::obmat, bPoseChannel::pose_head, bPoseChannel::pose_tail, and Object::type.
Referenced by constraint_add_exec(), and pose_ik_add_invoke().
|
static |
Definition at line 866 of file object_constraint.c.
References C, CONSTRAINT_TYPE_DISTLIMIT, CTX_data_main(), data, bConstraint::data, ED_object_active_context(), ED_object_constraint_update(), edit_constraint_property_get(), NC_OBJECT, ND_CONSTRAINT, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by CONSTRAINT_OT_limitdistance_reset(), and limitdistance_reset_invoke().
|
static |
Definition at line 886 of file object_constraint.c.
References C, edit_constraint_invoke_properties(), limitdistance_reset_exec(), NULL, and OPERATOR_CANCELLED.
Referenced by CONSTRAINT_OT_limitdistance_reset().
|
static |
Definition at line 2464 of file object_constraint.c.
References BKE_report(), C, constraint_add_exec(), Object::constraints, ED_object_active_context(), wmOperator::idname, OPERATOR_CANCELLED, wmOperator::ptr, wmOperator::reports, RNA_enum_get(), RPT_ERROR, and type.
Referenced by OBJECT_OT_constraint_add(), and OBJECT_OT_constraint_add_with_targets().
|
static |
Definition at line 2510 of file object_constraint.c.
References CONSTRAINT_TYPE_KINEMATIC, CONSTRAINT_TYPE_SPLINEIK, ELEM, EnumPropertyItem::identifier, NULL, rna_enum_constraint_type_items, RNA_enum_item_add(), RNA_enum_item_end(), and EnumPropertyItem::value.
Referenced by OBJECT_OT_constraint_add(), and OBJECT_OT_constraint_add_with_targets().
|
static |
Definition at line 2160 of file object_constraint.c.
References BKE_constraints_copy(), C, Object::constraints, CTX_DATA_BEGIN, CTX_DATA_END, CTX_data_main(), DEG_id_tag_update(), DEG_relations_tag_update(), ED_object_active_context(), ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, NA_ADDED, NC_OBJECT, ND_CONSTRAINT, NULL, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by OBJECT_OT_constraints_copy().
|
static |
Definition at line 2057 of file object_constraint.c.
References BKE_constraints_free(), C, CTX_DATA_BEGIN, CTX_DATA_END, CTX_data_main(), DEG_id_tag_update(), DEG_relations_tag_update(), ID_RECALC_TRANSFORM, NA_REMOVED, NC_OBJECT, ND_CONSTRAINT, NULL, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by OBJECT_OT_constraints_clear().
void OBJECT_OT_constraint_add | ( | wmOperatorType * | ot | ) |
Definition at line 2532 of file object_constraint.c.
References wmOperatorType::description, DummyRNA_NULL_items, ED_operator_object_active_editable(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, object_constraint_add_exec(), object_constraint_add_itemf(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_enum(), RNA_def_enum_funcs(), wmOperatorType::srna, and WM_menu_invoke().
Referenced by ED_operatortypes_object().
void OBJECT_OT_constraint_add_with_targets | ( | wmOperatorType * | ot | ) |
Definition at line 2561 of file object_constraint.c.
References wmOperatorType::description, DummyRNA_NULL_items, ED_operator_object_active_editable(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, object_constraint_add_exec(), object_constraint_add_itemf(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_enum(), RNA_def_enum_funcs(), wmOperatorType::srna, and WM_menu_invoke().
Referenced by ED_operatortypes_object().
void OBJECT_OT_constraints_clear | ( | wmOperatorType * | ot | ) |
Definition at line 2083 of file object_constraint.c.
References wmOperatorType::description, ED_operator_object_active_local_editable(), wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, object_constraints_clear_exec(), ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_object().
void OBJECT_OT_constraints_copy | ( | wmOperatorType * | ot | ) |
Definition at line 2184 of file object_constraint.c.
References wmOperatorType::description, ED_operator_object_active_editable(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, object_constraint_copy_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_object().
Definition at line 1337 of file object_constraint.c.
References BKE_pose_tag_recalc(), and Object::pose.
Referenced by ED_object_constraint_dependency_tag_update(), and ED_object_constraint_dependency_update().
|
static |
Definition at line 615 of file object_constraint.c.
References BLI_findindex(), bPose::chanbase, CONSTRAINT_OBTYPE_BONE, CONSTRAINT_OBTYPE_OBJECT, bPoseChannel::constraints, Object::constraints, ListBase::first, bPoseChannel::next, NULL, OB_ARMATURE, Object::pose, test_constraint(), and Object::type.
Referenced by ED_object_constraint_tag_update().
Definition at line 598 of file object_constraint.c.
References bPose::chanbase, bPoseChannel::constraints, Object::constraints, ListBase::first, bPoseChannel::next, NULL, OB_ARMATURE, Object::pose, test_constraints(), and Object::type.
Referenced by constraint_add_exec(), and ED_object_constraint_update().
|
static |
Definition at line 1252 of file object_constraint.c.
References BKE_report(), C, CONSTRAINT_TYPE_OBJECTSOLVER, CTX_data_main(), data, bConstraint::data, ED_object_active_context(), ED_object_constraint_update(), edit_constraint_property_get(), NC_OBJECT, ND_CONSTRAINT, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_ERROR, unit_m4(), and WM_event_add_notifier().
Referenced by CONSTRAINT_OT_objectsolver_clear_inverse(), and objectsolver_clear_inverse_invoke().
|
static |
Definition at line 1273 of file object_constraint.c.
References C, edit_constraint_invoke_properties(), NULL, objectsolver_clear_inverse_exec(), and OPERATOR_CANCELLED.
Referenced by CONSTRAINT_OT_objectsolver_clear_inverse().
|
static |
Definition at line 1190 of file object_constraint.c.
References BKE_report(), C, CONSTRAINT_TYPE_OBJECTSOLVER, CTX_data_main(), data, bConstraint::data, ED_object_active_context(), ED_object_constraint_update(), edit_constraint_property_get(), force_evaluation_if_constraint_disabled(), Object::id, ID::name, NC_OBJECT, ND_CONSTRAINT, NULL, OBJECTSOLVER_SET_INVERSE, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_ERROR, and WM_event_add_notifier().
Referenced by CONSTRAINT_OT_objectsolver_set_inverse(), and objectsolver_set_inverse_invoke().
|
static |
Definition at line 1217 of file object_constraint.c.
References C, edit_constraint_invoke_properties(), NULL, objectsolver_set_inverse_exec(), and OPERATOR_CANCELLED.
Referenced by CONSTRAINT_OT_objectsolver_set_inverse().
|
static |
Definition at line 2486 of file object_constraint.c.
References BKE_object_pose_armature_get(), BKE_report(), C, constraint_add_exec(), ED_object_active_context(), ED_object_constraint_active_list(), wmOperator::idname, OPERATOR_CANCELLED, wmOperator::ptr, wmOperator::reports, RNA_enum_get(), RPT_ERROR, and type.
Referenced by POSE_OT_constraint_add(), and POSE_OT_constraint_add_with_targets().
|
static |
Definition at line 2101 of file object_constraint.c.
References BKE_constraints_copy(), BKE_pose_tag_recalc(), BKE_report(), C, bPoseChannel::constflag, bPoseChannel::constraints, CTX_data_active_pose_bone(), CTX_DATA_BEGIN_WITH_ID, CTX_DATA_END, CTX_data_main(), DEG_id_tag_update(), DEG_relations_tag_update(), ELEM, ListBase::first, ID_RECALC_GEOMETRY, NC_OBJECT, ND_CONSTRAINT, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_ERROR, and WM_event_add_notifier().
Referenced by POSE_OT_constraints_copy().
|
static |
Definition at line 2018 of file object_constraint.c.
References BKE_constraints_free(), C, CTX_DATA_BEGIN_WITH_ID, CTX_DATA_END, CTX_data_main(), DEG_id_tag_update(), DEG_relations_tag_update(), ID_RECALC_GEOMETRY, NA_REMOVED, NC_OBJECT, ND_CONSTRAINT, NULL, OPERATOR_FINISHED, PCHAN_HAS_CONST, PCHAN_HAS_IK, PCHAN_HAS_SPLINEIK, and WM_event_add_notifier().
Referenced by POSE_OT_constraints_clear().
|
static |
Definition at line 2698 of file object_constraint.c.
References C, constraint_add_exec(), CONSTRAINT_TYPE_KINEMATIC, CTX_data_active_object(), ED_object_constraint_active_list(), wmOperator::ptr, and RNA_boolean_get().
Referenced by POSE_OT_ik_add().
|
static |
Definition at line 2637 of file object_constraint.c.
References BKE_object_pose_armature_get(), BKE_pose_channel_active_if_layer_visible(), BKE_report(), C, CONSTRAINT_TYPE_KINEMATIC, bPoseChannel::constraints, CTX_data_active_object(), ELEM, ListBase::first, get_new_constraint_target(), IFACE_, bConstraint::next, NULL, OPERATOR_CANCELLED, OPERATOR_INTERFACE, wmOperator::reports, RPT_ERROR, bConstraint::type, UI_popup_menu_begin(), UI_popup_menu_end(), UI_popup_menu_layout(), and uiItemBooleanO().
Referenced by POSE_OT_ik_add().
|
static |
Definition at line 2740 of file object_constraint.c.
References BKE_constraint_remove(), C, CONSTRAINT_TYPE_KINEMATIC, CTX_DATA_BEGIN_WITH_ID, CTX_DATA_END, DEG_id_tag_update(), ID_RECALC_GEOMETRY, NA_REMOVED, NC_OBJECT, ND_CONSTRAINT, bConstraint::next, next, NULL, OPERATOR_FINISHED, PCHAN_HAS_IK, PCHAN_HAS_TARGET, bConstraint::type, and WM_event_add_notifier().
Referenced by POSE_OT_ik_clear().
void POSE_OT_constraint_add | ( | wmOperatorType * | ot | ) |
Definition at line 2586 of file object_constraint.c.
References wmOperatorType::description, ED_operator_posemode_exclusive(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, pose_constraint_add_exec(), wmOperatorType::prop, RNA_def_enum(), rna_enum_constraint_type_items, wmOperatorType::srna, and WM_menu_invoke().
Referenced by ED_operatortypes_object().
void POSE_OT_constraint_add_with_targets | ( | wmOperatorType * | ot | ) |
Definition at line 2605 of file object_constraint.c.
References wmOperatorType::description, ED_operator_posemode_exclusive(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, pose_constraint_add_exec(), wmOperatorType::prop, RNA_def_enum(), rna_enum_constraint_type_items, wmOperatorType::srna, and WM_menu_invoke().
Referenced by ED_operatortypes_object().
void POSE_OT_constraints_clear | ( | wmOperatorType * | ot | ) |
Definition at line 2044 of file object_constraint.c.
References wmOperatorType::description, ED_operator_object_active_local_editable_posemode_exclusive(), wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, and pose_constraints_clear_exec().
Referenced by ED_operatortypes_object().
void POSE_OT_constraints_copy | ( | wmOperatorType * | ot | ) |
Definition at line 2139 of file object_constraint.c.
References wmOperatorType::description, ED_operator_posemode_exclusive(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, and pose_constraint_copy_exec().
Referenced by ED_operatortypes_object().
void POSE_OT_ik_add | ( | wmOperatorType * | ot | ) |
Definition at line 2709 of file object_constraint.c.
References wmOperatorType::description, ED_operator_posemode_exclusive(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, pose_ik_add_exec(), pose_ik_add_invoke(), RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_object().
void POSE_OT_ik_clear | ( | wmOperatorType * | ot | ) |
Definition at line 2773 of file object_constraint.c.
References wmOperatorType::description, ED_operator_object_active_local_editable_posemode_exclusive(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, and pose_ik_clear_exec().
Referenced by ED_operatortypes_object().
|
static |
Definition at line 244 of file object_constraint.c.
References blender::math::abs(), BKE_constraint_targets_flush(), BKE_constraint_targets_get(), BLI_listbase_count(), BLI_strncpy(), ListBase::first, bConstraintTarget::next, NULL, bConstraintTarget::subtarget, and bConstraintTarget::tar.
Referenced by constraint_add_exec().
|
static |
Definition at line 811 of file object_constraint.c.
References C, CONSTRAINT_TYPE_STRETCHTO, CTX_data_main(), data, bConstraint::data, ED_object_active_context(), ED_object_constraint_update(), edit_constraint_property_get(), NC_OBJECT, ND_CONSTRAINT, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by CONSTRAINT_OT_stretchto_reset(), and stretchto_reset_invoke().
|
static |
Definition at line 831 of file object_constraint.c.
References C, edit_constraint_invoke_properties(), NULL, OPERATOR_CANCELLED, and stretchto_reset_exec().
Referenced by CONSTRAINT_OT_stretchto_reset().
|
static |
Definition at line 286 of file object_constraint.c.
References ACTCON_USE_EVAL_TIME, BIK_test_constraint(), BKE_armature_find_bone_name(), BKE_armature_from_object(), BKE_constraint_targets_flush(), BKE_constraint_targets_get(), BKE_object_exists_check(), BKE_tracking_object_get_camera(), BKE_tracking_object_get_named(), BKE_tracking_track_get_named(), CAMERASOLVER_ACTIVECLIP, CONSTRAINT_DISABLE, CONSTRAINT_OBTYPE_BONE, CONSTRAINT_SPLINEIK_BOUND, CONSTRAINT_TYPE_ACTION, CONSTRAINT_TYPE_ARMATURE, CONSTRAINT_TYPE_CAMERASOLVER, CONSTRAINT_TYPE_CLAMPTO, CONSTRAINT_TYPE_FOLLOWPATH, CONSTRAINT_TYPE_FOLLOWTRACK, CONSTRAINT_TYPE_KINEMATIC, CONSTRAINT_TYPE_LOCKTRACK, CONSTRAINT_TYPE_OBJECTSOLVER, CONSTRAINT_TYPE_PIVOT, CONSTRAINT_TYPE_SPLINEIK, CONSTRAINT_TYPE_TRACKTO, CONSTRAINT_TYPE_TRANSFORM_CACHE, CU_PATH, data, bConstraint::data, Object::data, ELEM, ListBase::first, bConstraint::flag, Curve::flag, ID_OB, MEM_SAFE_FREE, bPoseChannel::name, bConstraintTarget::next, NULL, OB_ARMATURE, OB_CURVES_LEGACY, STREQ, bConstraintTarget::subtarget, bConstraintTarget::tar, type, bConstraint::type, and Object::type.
Referenced by object_test_constraint(), and test_constraints().
|
static |
Definition at line 568 of file object_constraint.c.
References CONSTRAINT_OBTYPE_BONE, CONSTRAINT_OBTYPE_OBJECT, constraint_type_get(), bPoseChannel::constraints, Object::constraints, ListBase::first, bConstraint::next, NULL, test_constraint(), and type.
Referenced by object_test_constraints().
|
static |
Definition at line 645 of file object_constraint.c.
Referenced by edit_constraint_properties().