Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/constraint.c
| Context not available. | |||||
| #include "BKE_tracking.h" | #include "BKE_tracking.h" | ||||
| #include "BKE_movieclip.h" | #include "BKE_movieclip.h" | ||||
| #include "BIK_api.h" | |||||
| #ifdef WITH_PYTHON | #ifdef WITH_PYTHON | ||||
| # include "BPY_extern.h" | # include "BPY_extern.h" | ||||
| #endif | #endif | ||||
| Context not available. | |||||
| return false; | return false; | ||||
| } | } | ||||
| bool BKE_constraint_remove_ex(Object *ob, bConstraint *con, bool clear_dep) | |||||
| { | |||||
| ListBase *lb = BKE_object_constraint_listbase_get(ob, con, NULL); | |||||
| if (BKE_constraint_remove(lb, con)) { | |||||
| /* ITASC needs to be rebuilt once a constraint is removed [#26920] */ | |||||
| if (ELEM(con->type, CONSTRAINT_TYPE_KINEMATIC, CONSTRAINT_TYPE_SPLINEIK) && clear_dep) { | |||||
| BIK_clear_data(ob->pose); | |||||
| } | |||||
| return true; | |||||
| } | |||||
| return false; | |||||
| } | |||||
| /* ......... */ | /* ......... */ | ||||
| /* Creates a new constraint, initializes its data, and returns it */ | /* Creates a new constraint, initializes its data, and returns it */ | ||||
| Context not available. | |||||