Page MenuHome

Drivers referencing scene.frame_current doesn't update when animation is playing
Closed, ResolvedPublic

Description

In the attached file if you scrub the animation the driver updates correctly (cube spins) but when you hit play, the cube stands still.

Event Timeline

Philipp Oeser (lichtwerk) lowered the priority of this task from 90 to 50.Oct 30 2019, 11:26 AM

Can confirm, checking...
(note we had T61014 which might be related...)

So this only works (scrubbing) since rB0ec6fa782b63.

Without diving deeper, I am not sure where the difference (scrubbing vs. playing) stems from [dont think it is ED_update_for_newframe...]
It is probably best if @Sergey Sharybin (sergey) has a look?

here is what I get on frame change

graph_id_tag_update: id=SCScene flags=AUDIO_SEEK source=USER_EDIT
graph_id_tag_update: id=SCScene flags=AUDIO_SEEK source=USER_EDIT
graph_id_tag_update: id=SCScene flags=TIME source=USER_EDIT
graph_id_tag_update: id=SCScene flags=TIME source=USER_EDIT
[SCScene :: View Layer]: Operation is entry point for update: COPY_ON_WRITE()
[SCScene :: View Layer]: Operation is entry point for update: SOUND_EVAL()
[SCScene :: View Layer]: Accumulated recalc bits for SCScene: 4235264
[SCScene :: View Layer]: Accumulated recalc bits for OBCube: 1
[SCScene :: View Layer]: Accumulated recalc bits for OBLight: 0
[SCScene :: View Layer]: Accumulated recalc bits for OBCamera: 0
[SCScene :: View Layer]: deg_evaluate_copy_on_write on SCScene (0x7f31c9be9008)
[SCScene :: View Layer]: layer_eval_view_layer on View Layer (0x7f31c9ec1588)
[SCScene :: View Layer]: BKE_animsys_eval_driver on OBCube (0x7f31c9893208) fcu rotation_euler[2] (0x7f31a802a008)
[SCScene :: View Layer]: BKE_object_eval_local_transform on OBCube (0x7f31c9893208)
[SCScene :: View Layer]: BKE_object_eval_eval_base_flags on OBCube (0x7f31c9893208)
[SCScene :: View Layer]: BKE_object_eval_eval_base_flags on OBLight (0x7f31c9892c08)
[SCScene :: View Layer]: BKE_object_eval_eval_base_flags on OBCamera (0x7f31ce373a08)
[SCScene :: View Layer]: BKE_object_eval_transform_final on OBCube (0x7f31c9893208)
Depsgraph updated in 0.000457 seconds.

here is what I get on play

graph_id_tag_update: id=SCScene flags=TIME source=USER_EDIT
graph_id_tag_update: id=SCScene flags=TIME source=USER_EDIT
graph_id_tag_update: id=SCScene flags=TIME source=USER_EDIT
graph_id_tag_update: id=SCScene flags=TIME source=USER_EDIT
graph_id_tag_update: id=SCScene flags=TIME source=USER_EDIT
graph_id_tag_update: id=SCScene flags=TIME source=USER_EDIT
graph_id_tag_update: id=SCScene flags=TIME source=USER_EDIT
graph_id_tag_update: id=SCScene flags=TIME source=USER_EDIT
graph_id_tag_update: id=SCScene flags=TIME source=USER_EDIT
graph_id_tag_update: id=SCScene flags=TIME source=USER_EDIT
graph_id_tag_update: id=SCScene flags=TIME source=USER_EDIT
graph_id_tag_update: id=SCScene flags=TIME source=USER_EDIT
graph_id_tag_update: id=SCScene flags=TIME source=USER_EDIT
graph_id_tag_update: id=SCScene flags=TIME source=USER_EDIT
graph_id_tag_update: id=SCScene flags=TIME source=USER_EDIT
graph_id_tag_update: id=SCScene flags=TIME source=USER_EDIT