[Bf-blender-cvs] [c3282cb746b] blender2.8: COW Fix: Muting constraints or changing influence did not properly refresh
Joshua Leung
noreply at git.blender.org
Tue May 15 18:39:32 CEST 2018
Commit: c3282cb746b36f05564ea6e3c24bb462d00f6bc9
Author: Joshua Leung
Date: Tue May 15 18:34:08 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBc3282cb746b36f05564ea6e3c24bb462d00f6bc9
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
===================================================================
M source/blender/editors/object/object_constraint.c
===================================================================
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)
More information about the Bf-blender-cvs
mailing list