summaryrefslogtreecommitdiff
path: root/scene/animation
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-10-08 13:56:10 +0200
committerRémi Verschelde <rverschelde@gmail.com>2022-10-08 13:56:10 +0200
commit2b376437a293971432f5e25487a6e3e79a8e8e4e (patch)
treef0005b922d5f7adb314c8222bfc949b9bfd69abe /scene/animation
parent0a129645acc00c2da6dac43379dec0af24ebe00d (diff)
parenteb0cc08a23b2a8d1961c08125a88df63b43eae9b (diff)
Merge pull request #65983 from Mickeon/rename-audio-player-volume-db
Rename AudioStreamPlayer3D's `unit_db` to `volume_db`
Diffstat (limited to 'scene/animation')
-rw-r--r--scene/animation/animation_tree.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/scene/animation/animation_tree.cpp b/scene/animation/animation_tree.cpp
index 4d09fa619c..f5c7ad254c 100644
--- a/scene/animation/animation_tree.cpp
+++ b/scene/animation/animation_tree.cpp
@@ -1565,11 +1565,7 @@ void AnimationTree::_process_graph(double p_delta) {
}
real_t db = Math::linear_to_db(MAX(blend, 0.00001));
- if (t->object->has_method(SNAME("set_unit_db"))) {
- t->object->call(SNAME("set_unit_db"), db);
- } else {
- t->object->call(SNAME("set_volume_db"), db);
- }
+ t->object->call(SNAME("set_volume_db"), db);
} break;
case Animation::TYPE_ANIMATION: {
if (blend < CMP_EPSILON) {