From 6adb254bb046ab337cfd4225ca55e17f196db312 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Tue, 14 Apr 2020 19:22:18 +0200 Subject: Fix T75686: Animating scene audio volume doesn't work Scene audio volume changes require the scene to be tagged with `ID_RECALC_AUDIO_VOLUME` (see `BKE_scene_update_sound()`). Tagging happens in the RNA update function `rna_Scene_volume_update()`, but that function is not called by the animation system. As a result, animated volume changes are not sent to the audio system. This commit adds a new depsgraph operation node that sets this tag when necessary, so that the animated values are used in the rest of the depsgraph evaluation. Reviewed By: sergey Differential Revision: https://developer.blender.org/D7429 --- source/blender/depsgraph/intern/node/deg_node_operation.h | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/depsgraph/intern/node/deg_node_operation.h') diff --git a/source/blender/depsgraph/intern/node/deg_node_operation.h b/source/blender/depsgraph/intern/node/deg_node_operation.h index bdc0df7f399..2faf139ec93 100644 --- a/source/blender/depsgraph/intern/node/deg_node_operation.h +++ b/source/blender/depsgraph/intern/node/deg_node_operation.h @@ -60,6 +60,7 @@ enum class OperationCode { /* Scene related. ------------------------------------------------------- */ SCENE_EVAL, + AUDIO_VOLUME, /* Object related. ------------------------------------------------------ */ OBJECT_BASE_FLAGS, -- cgit v1.2.3