diff options
author | Joshua Leung <aligorith@gmail.com> | 2018-05-15 19:34:08 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2018-05-15 19:39:24 +0300 |
commit | c3282cb746b36f05564ea6e3c24bb462d00f6bc9 (patch) | |
tree | 4f6fbb2fed6ee6b76520ccce4869551986539d15 /source/blender/editors/object/object_constraint.c | |
parent | 53c6d3399a053e912ade6c73c9cbbd0b37d515b7 (diff) |
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
Diffstat (limited to 'source/blender/editors/object/object_constraint.c')
-rw-r--r-- | source/blender/editors/object/object_constraint.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/object/object_constraint.c b/source/blender/editors/object/object_constraint.c index 6a0dedd1d43..28ff1ffab1c 100644 --- a/source/blender/editors/object/object_constraint.c +++ b/source/blender/editors/object/object_constraint.c @@ -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) |