Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2018-05-01 18:46:51 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2018-05-02 18:09:44 +0300
commitc7e0bb0b901e264cc5b9a505daf47ab8b6da9142 (patch)
treed3dfdf78acd728241a0aeadf4fe0c934748ee9e6 /source/blender/editors/animation/keyframing.c
parent98461aa5dc611a24f5c91fe1f21942f5932037db (diff)
Depsgraph: Make bAction a part of dependency graph
There are various values which depends on context in there, for example current driver value and original DNA value f-curve is applied for. This partially fixes issue with not being able to tweak keyed values when material preview is open. The material preview is not being currently updated against non-keyed changes since every tweak of material property does full preview scene depsgraph evaluation.
Diffstat (limited to 'source/blender/editors/animation/keyframing.c')
-rw-r--r--source/blender/editors/animation/keyframing.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/animation/keyframing.c b/source/blender/editors/animation/keyframing.c
index b490ae9c097..7b637e5b725 100644
--- a/source/blender/editors/animation/keyframing.c
+++ b/source/blender/editors/animation/keyframing.c
@@ -159,7 +159,9 @@ bAction *verify_adt_action(ID *id, short add)
/* XXX: we probably should have bmain passed down, but that involves altering too many API's */
DEG_relations_tag_update(G.main);
}
-
+
+ DEG_id_tag_update(&adt->action->id, DEG_TAG_COPY_ON_WRITE);
+
/* return the action */
return adt->action;
}