COW Fix: Muting constraints or changing influence did not properly refresh

We need to manually do a copy on write tag here, or else nothing will happen
This commit is contained in:
Joshua Leung 2018-05-15 18:34:08 +02:00
parent 53c6d3399a
commit c3282cb746
1 changed files with 5 additions and 0 deletions

View File

@ -1245,6 +1245,11 @@ void ED_object_constraint_tag_update(Object *ob, bConstraint *con)
DEG_id_tag_update(&ob->id, OB_RECALC_DATA | OB_RECALC_OB);
else
DEG_id_tag_update(&ob->id, OB_RECALC_OB);
/* Do Copy-on-Write tag here too, otherwise constraint
* influence/mute buttons in UI have no effect
*/
DEG_id_tag_update(&ob->id, DEG_TAG_COPY_ON_WRITE);
}
void ED_object_constraint_dependency_tag_update(Main *bmain, Object *ob, bConstraint *con)