Anim, when removing bone constraints, clear the constflag

When removing all constraints from pose bones, just reset the `constflag`
field to `0`, instead of clearing out specific flags. It was already
missing a flag that should have been cleared.

Effectively no functional changes, just a nice cleanup.
This commit is contained in:
Sybren A. Stüvel
2023-09-25 11:32:29 +02:00
parent 05b725c744
commit 0ddd0460f0

View File

@@ -2019,7 +2019,7 @@ static int pose_constraints_clear_exec(bContext *C, wmOperator * /*op*/)
/* free constraints for all selected bones */
CTX_DATA_BEGIN_WITH_ID (C, bPoseChannel *, pchan, selected_pose_bones, Object *, ob) {
BKE_constraints_free(&pchan->constraints);
pchan->constflag &= ~(PCHAN_HAS_IK | PCHAN_HAS_SPLINEIK | PCHAN_HAS_CONST);
pchan->constflag = 0;
if (prev_ob != ob) {
DEG_id_tag_update(&ob->id, ID_RECALC_GEOMETRY);