Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/object/object_constraint.c
| Context not available. | |||||
| /* free the constraint */ | /* free the constraint */ | ||||
| if (BKE_constraint_remove(lb, con)) { | if (BKE_constraint_remove(lb, con)) { | ||||
| /* there's no active constraint now, so make sure this is the case */ | /* there's no active constraint now, so make sure this is the case */ | ||||
| /* not sure if 'CONSTRAINT_ACTIVE' is even used anywhere [can be removed]? - lichtwerk */ | |||||
| BKE_constraints_active_set(lb, NULL); | BKE_constraints_active_set(lb, NULL); | ||||
| ED_object_constraint_update(ob); /* needed to set the flags on posebones correctly */ | ED_object_constraint_update(ob); /* needed to set the flags on posebones correctly */ | ||||
| /* ITASC needs to be rebuilt once a constraint is removed [#26920] */ | BKE_constraint_remove_post(ob, con); | ||||
| if (is_ik) { | |||||
| BIK_clear_data(ob->pose); | |||||
| } | |||||
| /* notifiers */ | /* notifiers */ | ||||
| WM_event_add_notifier(C, NC_OBJECT | ND_CONSTRAINT | NA_REMOVED, ob); | WM_event_add_notifier(C, NC_OBJECT | ND_CONSTRAINT | NA_REMOVED, ob); | ||||
| Context not available. | |||||